Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69a72a0e authored by Mike Travis's avatar Mike Travis Committed by Ingo Molnar
Browse files

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: default avatarMike Travis <travis@sgi.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7f1baa06
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -370,8 +370,8 @@ static void uv_heartbeat(unsigned long ignored)
	/* flip heartbeat bit */
	bits ^= SCIR_CPU_HEARTBEAT;

	/* are we the idle thread? */
	if (current->pid == 0)
	/* is this cpu idle? */
	if (idle_cpu(raw_smp_processor_id()))
		bits &= ~SCIR_CPU_ACTIVITY;
	else
		bits |= SCIR_CPU_ACTIVITY;
+13 −13

File changed.

Contains only whitespace changes.