core: Replace __get_cpu_var with __this_cpu_read if not used for an address.
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / printk.c
index 9a2264fc42cafac30d9264d569e4e673e9617f19..b032317f9964675c9d7c96b75a4b346f0e849ccc 100644 (file)
@@ -1074,8 +1074,8 @@ static DEFINE_PER_CPU(int, printk_pending);
 
 void printk_tick(void)
 {
-       if (__get_cpu_var(printk_pending)) {
-               __get_cpu_var(printk_pending) = 0;
+       if (__this_cpu_read(printk_pending)) {
+               __this_cpu_write(printk_pending, 0);
                wake_up_interruptible(&log_wait);
        }
 }