Commit 29f043a2 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Paul E. McKenney

sparc: Make SPARC use the new is_idle_task() API

Change from direct comparison of ->pid with zero to is_idle_task().
Signed-off-by: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
parent 99745b6a
...@@ -84,7 +84,7 @@ static void prom_sync_me(void) ...@@ -84,7 +84,7 @@ static void prom_sync_me(void)
prom_printf("PROM SYNC COMMAND...\n"); prom_printf("PROM SYNC COMMAND...\n");
show_free_areas(0); show_free_areas(0);
if(current->pid != 0) { if (!is_idle_task(current)) {
local_irq_enable(); local_irq_enable();
sys_sync(); sys_sync();
local_irq_disable(); local_irq_disable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment