projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: dts: Add the missing "\" key in non-US keyboards for exynos5250-snow
[cascardo/linux.git]
/
lib
/
percpu_ida.c
diff --git
a/lib/percpu_ida.c
b/lib/percpu_ida.c
index
b0698ea
..
9d054bf
100644
(file)
--- a/
lib/percpu_ida.c
+++ b/
lib/percpu_ida.c
@@
-117,8
+117,7
@@
static inline void alloc_global_tags(struct percpu_ida *pool,
min(pool->nr_free, pool->percpu_batch_size));
}
min(pool->nr_free, pool->percpu_batch_size));
}
-static inline unsigned alloc_local_tag(struct percpu_ida *pool,
- struct percpu_ida_cpu *tags)
+static inline unsigned alloc_local_tag(struct percpu_ida_cpu *tags)
{
int tag = -ENOSPC;
{
int tag = -ENOSPC;
@@
-159,7
+158,7
@@
int percpu_ida_alloc(struct percpu_ida *pool, gfp_t gfp)
tags = this_cpu_ptr(pool->tag_cpu);
/* Fastpath */
tags = this_cpu_ptr(pool->tag_cpu);
/* Fastpath */
- tag = alloc_local_tag(
pool,
tags);
+ tag = alloc_local_tag(tags);
if (likely(tag >= 0)) {
local_irq_restore(flags);
return tag;
if (likely(tag >= 0)) {
local_irq_restore(flags);
return tag;