mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 14:45:14 +00:00
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>
This commit is contained in:
parent
99745b6a83
commit
29f043a2ca
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue