diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-11-10 15:56:46 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-12-11 10:31:49 -0800 |
commit | 29f043a2caea2860db36fbeda0c17f79bf0cffbe (patch) | |
tree | c776a156e1a3d3dcee8d6082e6b731f17c94914f /arch/sparc | |
parent | 99745b6a83414006f5c1e83efaebb423b41b67ef (diff) | |
download | linux-29f043a2caea2860db36fbeda0c17f79bf0cffbe.tar.gz linux-29f043a2caea2860db36fbeda0c17f79bf0cffbe.tar.bz2 linux-29f043a2caea2860db36fbeda0c17f79bf0cffbe.zip |
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: 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>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/setup_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c index fe1e3fc31bc5..ffb883ddd0f0 100644 --- a/arch/sparc/kernel/setup_32.c +++ b/arch/sparc/kernel/setup_32.c @@ -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(); |