1. 29 7月, 2005 1 次提交
  2. 26 6月, 2005 2 次提交
    • P
      [PATCH] RCU: clean up a few remaining synchronize_kernel() calls · b2b18660
      Paul E. McKenney 提交于
      2.6.12-rc6-mm1 has a few remaining synchronize_kernel()s, some (but not
      all) in comments.  This patch changes these synchronize_kernel() calls (and
      comments) to synchronize_rcu() or synchronize_sched() as follows:
      
      - arch/x86_64/kernel/mce.c mce_read(): change to synchronize_sched() to
        handle races with machine-check exceptions (synchronize_rcu() would not cut
        it given RCU implementations intended for hardcore realtime use.
      
      - drivers/input/serio/i8042.c i8042_stop(): change to synchronize_sched() to
        handle races with i8042_interrupt() interrupt handler.  Again,
        synchronize_rcu() would not cut it given RCU implementations intended for
        hardcore realtime use.
      
      - include/*/kdebug.h comments: change to synchronize_sched() to handle races
        with NMIs.  As before, synchronize_rcu() would not cut it...
      
      - include/linux/list.h comment: change to synchronize_rcu(), since this
        comment is for list_del_rcu().
      
      - security/keys/key.c unregister_key_type(): change to synchronize_rcu(),
        since this is interacting with RCU read side.
      
      - security/keys/process_keys.c install_session_keyring(): change to
        synchronize_rcu(), since this is interacting with RCU read side.
      Signed-off-by: N"Paul E. McKenney" <paulmck@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b2b18660
    • A
      [PATCH] x86_64: Change init sections for CPU hotplug support · e6982c67
      Ashok Raj 提交于
      This patch adds __cpuinit and __cpuinitdata sections that need to exist past
      boot to support cpu hotplug.
      
      Caveat: This is done *only* for EM64T CPU Hotplug support, on request from
      Andi Kleen.  Much of the generic hotplug code in kernel, and none of the other
      archs that support CPU hotplug today, i386, ia64, ppc64, s390 and parisc dont
      mark sections with __cpuinit, but only mark them as __devinit, and
      __devinitdata.
      
      If someone is motivated to change generic code, we need to make sure all
      existing hotplug code does not break, on other arch's that dont use __cpuinit,
      and __cpudevinit.
      Signed-off-by: NAshok Raj <ashok.raj@intel.com>
      Acked-by: NAndi Kleen <ak@muc.de>
      Acked-by: NZwane Mwaikambo <zwane@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e6982c67
  3. 17 4月, 2005 3 次提交