aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gcd.c2
-rw-r--r--lib/percpu-refcount.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/gcd.c b/lib/gcd.c
index 227dea924425..7948ab27f0a4 100644
--- a/lib/gcd.c
+++ b/lib/gcd.c
@@ -10,7 +10,7 @@
10 * has decent hardware division. 10 * has decent hardware division.
11 */ 11 */
12 12
13#if !defined(CONFIG_CPU_NO_EFFICIENT_FFS) && !defined(CPU_NO_EFFICIENT_FFS) 13#if !defined(CONFIG_CPU_NO_EFFICIENT_FFS)
14 14
15/* If __ffs is available, the even/odd algorithm benchmarks slower. */ 15/* If __ffs is available, the even/odd algorithm benchmarks slower. */
16 16
diff --git a/lib/percpu-refcount.c b/lib/percpu-refcount.c
index de10b8c0bff6..9877682e49c7 100644
--- a/lib/percpu-refcount.c
+++ b/lib/percpu-refcount.c
@@ -181,7 +181,7 @@ static void __percpu_ref_switch_to_atomic(struct percpu_ref *ref,
181 ref->confirm_switch = confirm_switch ?: percpu_ref_noop_confirm_switch; 181 ref->confirm_switch = confirm_switch ?: percpu_ref_noop_confirm_switch;
182 182
183 percpu_ref_get(ref); /* put after confirmation */ 183 percpu_ref_get(ref); /* put after confirmation */
184 call_rcu_sched(&ref->rcu, percpu_ref_switch_to_atomic_rcu); 184 call_rcu(&ref->rcu, percpu_ref_switch_to_atomic_rcu);
185} 185}
186 186
187static void __percpu_ref_switch_to_percpu(struct percpu_ref *ref) 187static void __percpu_ref_switch_to_percpu(struct percpu_ref *ref)