diff options
author | Christoph Lameter <cl@linux.com> | 2014-09-01 16:15:52 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-02 11:52:36 -0400 |
commit | f318f7db00f4968d934b4ccb8e3fc0b21f419046 (patch) | |
tree | 07679ce52cbfa5a4bfdc523093c2f6dab7ea6a43 | |
parent | 4ba2968420fa9d0604b6a6a5c61bfa8d0fa84ae0 (diff) | |
download | op-kernel-dev-f318f7db00f4968d934b4ccb8e3fc0b21f419046.zip op-kernel-dev-f318f7db00f4968d934b4ccb8e3fc0b21f419046.tar.gz |
ia64: sn_nodepda cannot be assigned to after this_cpu conversion. Use __this_cpu_write.
There must be an explit statement to modify the percpu variable after
the conversion of the sn_nodpda macro to use this_cpu_read.
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Compile-tested-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | arch/ia64/sn/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c index 36182c8..5f6b6b4 100644 --- a/arch/ia64/sn/kernel/setup.c +++ b/arch/ia64/sn/kernel/setup.c @@ -629,7 +629,7 @@ void sn_cpu_init(void) cnode = nasid_to_cnodeid(nasid); - sn_nodepda = nodepdaindr[cnode]; + __this_cpu_write(__sn_nodepda, nodepdaindr[cnode]); pda->led_address = (typeof(pda->led_address)) (LED0 + (slice << LED_CPU_SHIFT)); |