linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] blackfin: Use schedule_preempt_disabled()
@ 2012-08-16 15:02 Tobias Klauser
  2012-08-16 16:24 ` Mike Frysinger
  2012-08-17  6:18 ` Bob Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Tobias Klauser @ 2012-08-16 15:02 UTC (permalink / raw)
  To: Mike Frysinger
  Cc: Bob Liu, uclinux-dist-devel, linux-kernel, Thomas Gleixner,
	Peter Zijlstra, Ingo Molnar

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

b5affb014 (blackfin: add bf60x to current framework) accidentally (?)
reverted the change.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 arch/blackfin/kernel/process.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c
index 62bcea7..8936bbb 100644
--- a/arch/blackfin/kernel/process.c
+++ b/arch/blackfin/kernel/process.c
@@ -95,9 +95,7 @@ void cpu_idle(void)
 			idle();
 		rcu_idle_exit();
 		tick_nohz_idle_exit();
-		preempt_enable_no_resched();
-		schedule();
-		preempt_disable();
+		schedule_preempt_disabled();
 	}
 }
 
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] blackfin: Use schedule_preempt_disabled()
  2012-08-16 15:02 [PATCH] blackfin: Use schedule_preempt_disabled() Tobias Klauser
@ 2012-08-16 16:24 ` Mike Frysinger
  2012-08-17  6:18 ` Bob Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2012-08-16 16:24 UTC (permalink / raw)
  To: Tobias Klauser
  Cc: Bob Liu, uclinux-dist-devel, linux-kernel, Thomas Gleixner,
	Peter Zijlstra, Ingo Molnar

[-- Attachment #1: Type: Text/Plain, Size: 279 bytes --]

On Thursday 16 August 2012 11:02:15 Tobias Klauser wrote:
> Follow bd2f5536 (sched/rt: Use schedule_preempt_disabled()).
> 
> b5affb014 (blackfin: add bf60x to current framework) accidentally (?)
> reverted the change.

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] blackfin: Use schedule_preempt_disabled()
  2012-08-16 15:02 [PATCH] blackfin: Use schedule_preempt_disabled() Tobias Klauser
  2012-08-16 16:24 ` Mike Frysinger
@ 2012-08-17  6:18 ` Bob Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Bob Liu @ 2012-08-17  6:18 UTC (permalink / raw)
  To: Tobias Klauser
  Cc: Mike Frysinger, uclinux-dist-devel, linux-kernel,
	Thomas Gleixner, Peter Zijlstra, Ingo Molnar

On Thu, Aug 16, 2012 at 11:02 PM, Tobias Klauser <tklauser@distanz.ch> wrote:
> Follow bd2f5536 (sched/rt: Use schedule_preempt_disabled()).
>
> b5affb014 (blackfin: add bf60x to current framework) accidentally (?)
> reverted the change.
>

Applied, Thank you!

> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Ingo Molnar <mingo@elte.hu>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> ---
>  arch/blackfin/kernel/process.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c
> index 62bcea7..8936bbb 100644
> --- a/arch/blackfin/kernel/process.c
> +++ b/arch/blackfin/kernel/process.c
> @@ -95,9 +95,7 @@ void cpu_idle(void)
>                         idle();
>                 rcu_idle_exit();
>                 tick_nohz_idle_exit();
> -               preempt_enable_no_resched();
> -               schedule();
> -               preempt_disable();
> +               schedule_preempt_disabled();
>         }
>  }
>
> --
> 1.7.5.4
>

-- 
Regards,
--Bob

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-17  6:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 15:02 [PATCH] blackfin: Use schedule_preempt_disabled() Tobias Klauser
2012-08-16 16:24 ` Mike Frysinger
2012-08-17  6:18 ` Bob Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).