sparc: Make SPARC use the new is_idle_task() API
authorPaul E. McKenney <paul.mckenney@linaro.org>
Thu, 10 Nov 2011 23:56:46 +0000 (15:56 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 11 Dec 2011 18:31:49 +0000 (10:31 -0800)
Change from direct comparison of ->pid with zero to is_idle_task().

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
arch/sparc/kernel/setup_32.c

index fe1e3fc..ffb883d 100644 (file)
@@ -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();