2012-08-16 15:15:46

by Tobias Klauser

[permalink] [raw]
Subject: [PATCH] unicore32: Use schedule_preempt_disabled()

Follow bd2f5536 (sched/rt: Use schedule_preempt_disabled()).

Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Tobias Klauser <[email protected]>
---
arch/unicore32/kernel/process.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c
index b008586..9af321a 100644
--- a/arch/unicore32/kernel/process.c
+++ b/arch/unicore32/kernel/process.c
@@ -65,9 +65,7 @@ void cpu_idle(void)
}
rcu_idle_exit();
tick_nohz_idle_exit();
- preempt_enable_no_resched();
- schedule();
- preempt_disable();
+ schedule_preempt_disabled();
}
}

--
1.7.5.4


2012-08-17 01:09:08

by Guan Xuetao

[permalink] [raw]
Subject: Re: [PATCH] unicore32: Use schedule_preempt_disabled()

> Follow bd2f5536 (sched/rt: Use schedule_preempt_disabled()).
>
> Cc: Thomas Gleixner <[email protected]>
> Cc: Peter Zijlstra <[email protected]>
> Cc: Ingo Molnar <[email protected]>
> Signed-off-by: Tobias Klauser <[email protected]>

Thanks.

Signed-off-by: Guan Xuetao <[email protected]>