Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182603
b: refs/heads/master
c: 99659a9
h: refs/heads/master
i:
  182601: 372642a
  182599: 859570e
v: v3
  • Loading branch information
Roel Kluin authored and H. Peter Anvin committed Jan 7, 2010
1 parent 4987a90 commit 5e9221d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1e0138d7d10fd447c71cc70f367eac514bd3ce4
refs/heads/master: 99659a929d653d0c9ce458091870544768add871
9 changes: 4 additions & 5 deletions trunk/arch/x86/kernel/apic/x2apic_uv_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,19 +475,18 @@ static void uv_heartbeat(unsigned long ignored)

static void __cpuinit uv_heartbeat_enable(int cpu)
{
if (!uv_cpu_hub_info(cpu)->scir.enabled) {
while (!uv_cpu_hub_info(cpu)->scir.enabled) {
struct timer_list *timer = &uv_cpu_hub_info(cpu)->scir.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;
}

/* check boot cpu */
if (!uv_cpu_hub_info(0)->scir.enabled)
uv_heartbeat_enable(0);
/* also ensure that boot cpu is enabled */
cpu = 0;
}
}

#ifdef CONFIG_HOTPLUG_CPU
Expand Down

0 comments on commit 5e9221d

Please sign in to comment.