]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: Fix incorrect per_cpu accessor in xen_clocksource_read()
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 16 Oct 2014 21:02:15 +0000 (17:02 -0400)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 23 Oct 2014 15:24:02 +0000 (16:24 +0100)
commit7b7d36ae12aa04b45cc95707f88158922a69ac08
treec08c297c9d1d03dc915b567a9788e77523555143
parentd61dc13301f9a001e8eb3be65f90655c343e5baf
x86/xen: Fix incorrect per_cpu accessor in xen_clocksource_read()

Commit 390d302f1354 ("x86: Replace __get_cpu_var uses") replaced
__get_cpu_var() with this_cpu_ptr() in xen_clocksource_read() in such a
way that instead of accessing a structure pointed to by a per-cpu pointer
we are trying to get to a per-cpu structure.

__this_cpu_read() of the pointer is the more appropriate accessor.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/time.c