All of lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: eranian@hpl.hp.com, mm-commits@vger.kernel.org
Subject: - add-i386-idle-notifier-take-3-fix.patch removed from -mm tree
Date: Thu, 08 Feb 2007 13:52:50 -0800	[thread overview]
Message-ID: <200702082152.l18LqoUg027665@shell0.pdx.osdl.net> (raw)


The patch titled
     add i386 idle notifier (take 3) (fix)
has been removed from the -mm tree.  Its filename was
     add-i386-idle-notifier-take-3-fix.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: add i386 idle notifier (take 3) (fix)
From: Stephane Eranian <eranian@hpl.hp.com>

- do not export i386 idle notification registration entry points because
  there is currently no user for this

- make it more explicit that the store to idle_state must be atomic

Signed-off-by: stephane eranian <eranian@hpl.hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/i386/kernel/process.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff -puN arch/i386/kernel/process.c~add-i386-idle-notifier-take-3-fix arch/i386/kernel/process.c
--- a/arch/i386/kernel/process.c~add-i386-idle-notifier-take-3-fix
+++ a/arch/i386/kernel/process.c
@@ -87,19 +87,18 @@ void idle_notifier_register(struct notif
 {
 	atomic_notifier_chain_register(&idle_notifier, n);
 }
-EXPORT_SYMBOL_GPL(idle_notifier_register);
 
 void idle_notifier_unregister(struct notifier_block *n)
 {
 	atomic_notifier_chain_unregister(&idle_notifier, n);
 }
-EXPORT_SYMBOL(idle_notifier_unregister);
 
 static DEFINE_PER_CPU(volatile unsigned long, idle_state);
 
 void enter_idle(void)
 {
-	__get_cpu_var(idle_state) = 1;
+	/* needs to be atomic w.r.t. interrupts, not against other CPUs */
+	__set_bit(0, &__get_cpu_var(idle_state));
 	atomic_notifier_call_chain(&idle_notifier, IDLE_START, NULL);
 }
 
_

Patches currently in -mm which might be from eranian@hpl.hp.com are

git-ia64.patch
sysctl-c99-convert-arch-ia64-kernel-perfmon-and-remove-abi-breakage.patch

             reply	other threads:[~2007-02-08 21:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-08 21:52 akpm [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-01-04 22:18 - add-i386-idle-notifier-take-3-fix.patch removed from -mm tree akpm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200702082152.l18LqoUg027665@shell0.pdx.osdl.net \
    --to=akpm@linux-foundation.org \
    --cc=eranian@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.