mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-08 07:35:04 +00:00
x86/uv: update SCIR driver to use the idle_cpu() function
Impact: cleanup Change UV heartbeat function to use idle_cpu to determine cpu's "idleness". Realign uv_hub definitions. Signed-of-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
7f1baa063e
commit
69a72a0e93
2 changed files with 15 additions and 15 deletions
|
@ -370,8 +370,8 @@ static void uv_heartbeat(unsigned long ignored)
|
||||||
/* flip heartbeat bit */
|
/* flip heartbeat bit */
|
||||||
bits ^= SCIR_CPU_HEARTBEAT;
|
bits ^= SCIR_CPU_HEARTBEAT;
|
||||||
|
|
||||||
/* are we the idle thread? */
|
/* is this cpu idle? */
|
||||||
if (current->pid == 0)
|
if (idle_cpu(raw_smp_processor_id()))
|
||||||
bits &= ~SCIR_CPU_ACTIVITY;
|
bits &= ~SCIR_CPU_ACTIVITY;
|
||||||
else
|
else
|
||||||
bits |= SCIR_CPU_ACTIVITY;
|
bits |= SCIR_CPU_ACTIVITY;
|
||||||
|
|
Loading…
Add table
Reference in a new issue