diff options
author | Christoph Lameter <cl@linux.com> | 2014-08-17 12:30:27 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-08-26 13:45:45 -0400 |
commit | 4a32fea9d78f2d2315c0072757b197d5a304dc8b (patch) | |
tree | 6cb53d3bb67bed81671ff9ff38d2f48d118a2345 /kernel/user-return-notifier.c | |
parent | dc5df73b3afffc8d042dadffc1c959008b2c1163 (diff) | |
download | op-kernel-dev-4a32fea9d78f2d2315c0072757b197d5a304dc8b.zip op-kernel-dev-4a32fea9d78f2d2315c0072757b197d5a304dc8b.tar.gz |
scheduler: Replace __get_cpu_var with this_cpu_ptr
Convert all uses of __get_cpu_var for address calculation to use
this_cpu_ptr instead.
[Uses of __get_cpu_var with cpumask_var_t are no longer
handled by this patch]
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/user-return-notifier.c')
-rw-r--r-- | kernel/user-return-notifier.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/user-return-notifier.c b/kernel/user-return-notifier.c index 394f70b..9586b67 100644 --- a/kernel/user-return-notifier.c +++ b/kernel/user-return-notifier.c @@ -14,7 +14,7 @@ static DEFINE_PER_CPU(struct hlist_head, return_notifier_list); void user_return_notifier_register(struct user_return_notifier *urn) { set_tsk_thread_flag(current, TIF_USER_RETURN_NOTIFY); - hlist_add_head(&urn->link, &__get_cpu_var(return_notifier_list)); + hlist_add_head(&urn->link, this_cpu_ptr(&return_notifier_list)); } EXPORT_SYMBOL_GPL(user_return_notifier_register); @@ -25,7 +25,7 @@ EXPORT_SYMBOL_GPL(user_return_notifier_register); void user_return_notifier_unregister(struct user_return_notifier *urn) { hlist_del(&urn->link); - if (hlist_empty(&__get_cpu_var(return_notifier_list))) + if (hlist_empty(this_cpu_ptr(&return_notifier_list))) clear_tsk_thread_flag(current, TIF_USER_RETURN_NOTIFY); } EXPORT_SYMBOL_GPL(user_return_notifier_unregister); |