x86/platform/UV: Move scir info to the per cpu info struct
Change the references to the SCIR fields to the new per cpu info structs. Tested-by: John Estabrook <estabrook@sgi.com> Tested-by: Gary Kroening <gfk@sgi.com> Tested-by: Nathan Zimmer <nzimmer@sgi.com> Signed-off-by: Mike Travis <travis@sgi.com> Reviewed-by: Dimitri Sivanich <sivanich@sgi.com> Cc: Andrew Banman <abanman@sgi.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Len Brown <len.brown@intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Russ Anderson <rja@sgi.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20160429215404.452538234@asylum.americas.sgi.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -756,8 +756,8 @@ static __init void uv_rtc_init(void)
|
||||
*/
|
||||
static void uv_heartbeat(unsigned long ignored)
|
||||
{
|
||||
struct timer_list *timer = &uv_hub_info->scir.timer;
|
||||
unsigned char bits = uv_hub_info->scir.state;
|
||||
struct timer_list *timer = &uv_scir_info->timer;
|
||||
unsigned char bits = uv_scir_info->state;
|
||||
|
||||
/* flip heartbeat bit */
|
||||
bits ^= SCIR_CPU_HEARTBEAT;
|
||||
@@ -777,14 +777,14 @@ static void uv_heartbeat(unsigned long ignored)
|
||||
|
||||
static void uv_heartbeat_enable(int cpu)
|
||||
{
|
||||
while (!uv_cpu_hub_info(cpu)->scir.enabled) {
|
||||
struct timer_list *timer = &uv_cpu_hub_info(cpu)->scir.timer;
|
||||
while (!uv_cpu_scir_info(cpu)->enabled) {
|
||||
struct timer_list *timer = &uv_cpu_scir_info(cpu)->timer;
|
||||
|
||||
uv_set_cpu_scir_bits(cpu, SCIR_CPU_HEARTBEAT|SCIR_CPU_ACTIVITY);
|
||||
setup_timer(timer, uv_heartbeat, cpu);
|
||||
timer->expires = jiffies + SCIR_CPU_HB_INTERVAL;
|
||||
add_timer_on(timer, cpu);
|
||||
uv_cpu_hub_info(cpu)->scir.enabled = 1;
|
||||
uv_cpu_scir_info(cpu)->enabled = 1;
|
||||
|
||||
/* also ensure that boot cpu is enabled */
|
||||
cpu = 0;
|
||||
@@ -794,9 +794,9 @@ static void uv_heartbeat_enable(int cpu)
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
static void uv_heartbeat_disable(int cpu)
|
||||
{
|
||||
if (uv_cpu_hub_info(cpu)->scir.enabled) {
|
||||
uv_cpu_hub_info(cpu)->scir.enabled = 0;
|
||||
del_timer(&uv_cpu_hub_info(cpu)->scir.timer);
|
||||
if (uv_cpu_scir_info(cpu)->enabled) {
|
||||
uv_cpu_scir_info(cpu)->enabled = 0;
|
||||
del_timer(&uv_cpu_scir_info(cpu)->timer);
|
||||
}
|
||||
uv_set_cpu_scir_bits(cpu, 0xff);
|
||||
}
|
||||
@@ -1055,13 +1055,13 @@ void __init uv_system_init(void)
|
||||
|
||||
uv_cpu_hub_info(cpu)->numa_blade_id = blade;
|
||||
uv_cpu_hub_info(cpu)->pnode = pnode;
|
||||
uv_cpu_hub_info(cpu)->scir.offset = uv_scir_offset(apicid);
|
||||
uv_cpu_hub_info(cpu)->blade_processor_id = lcpu;
|
||||
uv_node_to_blade[nodeid] = blade;
|
||||
uv_cpu_to_blade[cpu] = blade;
|
||||
|
||||
/* Initialize per cpu info list */
|
||||
uv_cpu_info_per(cpu)->p_uv_hub_info = uv_cpu_hub_info(cpu);
|
||||
uv_cpu_info_per(cpu)->scir.offset = uv_scir_offset(apicid);
|
||||
}
|
||||
|
||||
/* Add blade/pnode info for nodes without cpus */
|
||||
|
Reference in New Issue
Block a user