1. 05 1月, 2009 2 次提交
    • H
      stop_machine: introduce stop_machine_create/destroy. · 9ea09af3
      Heiko Carstens 提交于
      Introduce stop_machine_create/destroy. With this interface subsystems
      that need a non-failing stop_machine environment can create the
      stop_machine machine threads before actually calling stop_machine.
      When the threads aren't needed anymore they can be killed with
      stop_machine_destroy again.
      
      When stop_machine gets called and the threads aren't present they
      will be created and destroyed automatically. This restores the old
      behaviour of stop_machine.
      
      This patch also converts cpu hotplug to the new interface since it
      is special: cpu_down calls __stop_machine instead of stop_machine.
      However the kstop threads will only be created when stop_machine
      gets called.
      
      Changing the code so that the threads would be created automatically
      on __stop_machine is currently not possible: when __stop_machine gets
      called we hold cpu_add_remove_lock, which is the same lock that
      create_rt_workqueue would take. So the workqueue needs to be created
      before the cpu hotplug code locks cpu_add_remove_lock.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      9ea09af3
    • H
      module: fix module loading failure of large kernel modules for parisc · 088af9a6
      Helge Deller 提交于
      When creating the final layout of a kernel module in memory, allow the
      module loader to reserve some additional memory in front of a given section.
      This is currently only needed for the parisc port which needs to put the
      stub entries there to fulfill the 17/22bit PCREL relocations with large
      kernel modules like xfs.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (renamed fn)
      088af9a6
  2. 04 1月, 2009 2 次提交
  3. 03 1月, 2009 36 次提交