time: Replace __get_cpu_var uses
Convert uses of __get_cpu_var for creating a address from a percpu offset to this_cpu_ptr. The two cases where get_cpu_var is used to actually access a percpu variable are changed to use this_cpu_read/raw_cpu_read. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:

committed by
Tejun Heo

parent
bb964a92ce
commit
22127e93c5
@@ -655,7 +655,7 @@ static inline void debug_assert_init(struct timer_list *timer)
|
||||
static void do_init_timer(struct timer_list *timer, unsigned int flags,
|
||||
const char *name, struct lock_class_key *key)
|
||||
{
|
||||
struct tvec_base *base = __raw_get_cpu_var(tvec_bases);
|
||||
struct tvec_base *base = raw_cpu_read(tvec_bases);
|
||||
|
||||
timer->entry.next = NULL;
|
||||
timer->base = (void *)((unsigned long)base | flags);
|
||||
|
Reference in New Issue
Block a user