Skip to content

Commit

Permalink
sparc: Make SPARC use the new is_idle_task() API
Browse files Browse the repository at this point in the history
Change from direct comparison of ->pid with zero to is_idle_task().

Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Acked-by: David S. Miller <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
  • Loading branch information
Paul E. McKenney authored and paulmck committed Dec 11, 2011
1 parent 99745b6 commit 29f043a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void prom_sync_me(void)

prom_printf("PROM SYNC COMMAND...\n");
show_free_areas(0);
if(current->pid != 0) {
if (!is_idle_task(current)) {
local_irq_enable();
sys_sync();
local_irq_disable();
Expand Down

0 comments on commit 29f043a

Please sign in to comment.