Skip to content

Commit

Permalink
ia64: sn_nodepda cannot be assigned to after this_cpu conversion. Use…
Browse files Browse the repository at this point in the history
… __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>
  • Loading branch information
Christoph Lameter authored and Tejun Heo committed Sep 2, 2014
1 parent 4ba2968 commit f318f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ia64/sn/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f318f7d

Please sign in to comment.