Skip to content

Commit 29f043a

Browse files
Paul E. McKenneypaulmck
authored andcommitted
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>
1 parent 99745b6 commit 29f043a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/sparc/kernel/setup_32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void prom_sync_me(void)
8484

8585
prom_printf("PROM SYNC COMMAND...\n");
8686
show_free_areas(0);
87-
if(current->pid != 0) {
87+
if (!is_idle_task(current)) {
8888
local_irq_enable();
8989
sys_sync();
9090
local_irq_disable();

0 commit comments

Comments
 (0)