1. 02 12月, 2006 14 次提交
  2. 26 11月, 2006 1 次提交
  3. 29 10月, 2006 1 次提交
  4. 28 10月, 2006 1 次提交
    • A
      [PATCH] drivers: wait for threaded probes between initcall levels · 735a7ffb
      Andrew Morton 提交于
      The multithreaded-probing code has a problem: after one initcall level (eg,
      core_initcall) has been processed, we will then start processing the next
      level (postcore_initcall) while the kernel threads which are handling
      core_initcall are still executing.  This breaks the guarantees which the
      layered initcalls previously gave us.
      
      IOW, we want to be multithreaded _within_ an initcall level, but not between
      different levels.
      
      Fix that up by causing the probing code to wait for all outstanding probes at
      one level to complete before we start processing the next level.
      
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      735a7ffb
  5. 19 10月, 2006 12 次提交
  6. 01 10月, 2006 1 次提交
  7. 30 9月, 2006 2 次提交
  8. 27 9月, 2006 1 次提交
    • S
      [PATCH] x86 microcode: using request_firmware to pull microcode · a30a6a2c
      Shaohua Li 提交于
      Using request_firmware to pull ucode from userspace, so we don't need the
      application 'microcode_ctl' to assist.  We name each ucode file according
      to CPU's info as intel-ucode/family-model-stepping.  In this way we could
      split ucode file as small one.  This has a lot of advantages such as
      selectively update and validate microcode for specific models, better
      manage microcode file, easily write tools for administerators and so on.
      with the changes, we should put all intel-ucode/xx-xx-xx microcode files
      into the firmware dir (I had a tool to split previous big data file into
      small one and later we will release new style data file).  The init script
      should be changed to just loading the driver without unloading
      Signed-off-by: NShaohua Li <shaohua.li@intel.com>
      Acked-by: NTigran Aivazian <tigran@veritas.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a30a6a2c
  9. 26 9月, 2006 7 次提交
    • C
      [PATCH] ZVC: Support NR_SLAB_RECLAIMABLE / NR_SLAB_UNRECLAIMABLE · 972d1a7b
      Christoph Lameter 提交于
      Remove the atomic counter for slab_reclaim_pages and replace the counter
      and NR_SLAB with two ZVC counter that account for unreclaimable and
      reclaimable slab pages: NR_SLAB_RECLAIMABLE and NR_SLAB_UNRECLAIMABLE.
      
      Change the check in vmscan.c to refer to to NR_SLAB_RECLAIMABLE.  The
      intend seems to be to check for slab pages that could be freed.
      Signed-off-by: NChristoph Lameter <clameter@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      972d1a7b
    • C
      [PATCH] reduce MAX_NR_ZONES: make display of highmem counters conditional on CONFIG_HIGHMEM · 182e8e23
      Christoph Lameter 提交于
      Do not display HIGHMEM memory sizes if CONFIG_HIGHMEM is not set.
      
      Make HIGHMEM dependent texts and make display of highmem counters optional
      
      Some texts are depending on CONFIG_HIGHMEM.
      
      Remove those strings and remove the display of highmem counter values if
      CONFIG_HIGHMEM is not set.
      
      [akpm@osdl.org: remove some ifdefs]
      Signed-off-by: NChristoph Lameter <clameter@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      182e8e23
    • A
      Driver core: Remove unneeded routines from driver core · 81107bf5
      Alan Stern 提交于
      This patch (as783) simplifies the driver core slightly by removing four
      unnecessary _get and _put methods.
      
      It is vital that when a driver is removed from its bus's klist of
      registered drivers, or when a device is removed from a driver's klist
      of bound devices, that the klist updates complete synchronously.
      Otherwise the kernel might try binding an unregistered driver to a
      newly-registered device, or adding a device to the klist for a new
      driver before it has been removed from the old driver's klist.
      
      Since the removals must be synchronous, they don't need to update any
      reference counts.  Hence the _get and _put methods can be dispensed
      with.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      81107bf5
    • A
      Driver core: Fix potential deadlock in driver core · f2eaae19
      Alan Stern 提交于
      There is a potential deadlock in the driver core.  It boils down to
      the fact that bus_remove_device() calls klist_remove() instead of
      klist_del(), thereby waiting until the reference count of the
      klist_node in the bus's klist of devices drops to 0.  The refcount
      can't reach 0 so long as a modprobe process is trying to bind a new
      driver to the device being removed, by calling __driver_attach().  The
      problem is that __driver_attach() tries to acquire the device's
      parent's semaphore, but the caller of bus_remove_device() is quite
      likely to own that semaphore already.
      
      It isn't sufficient just to replace klist_remove() with klist_del().
      Doing so runs the risk that the device would remain on the bus's klist
      of devices for some time, and so could be bound to another driver even
      after it was unregistered.  What's needed is a new way to distinguish
      whether or not a device is registered, based on a criterion other than
      whether its klist_node is linked into the bus's klist of devices.  That
      way driver binding can fail when the device is unregistered, even if
      it is still linked into the klist.
      
      This patch (as782) implements the solution, by adding a new bitflag to
      indiate when a struct device is registered, by testing the flag before
      allowing a driver to bind a device, and by changing the definition of
      the device_is_registered() inline.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f2eaae19
    • G
      Driver Core: add ability for drivers to do a threaded probe · d779249e
      Greg Kroah-Hartman 提交于
      This adds the infrastructure for drivers to do a threaded probe, and
      waits at init time for all currently outstanding probes to complete.
      
      A new kernel thread will be created when the probe() function for the
      driver is called, if the multithread_probe bit is set in the driver
      saying it can support this kind of operation.
      
      I have tested this with USB and PCI, and it works, and shaves off a lot
      of time in the boot process, but there are issues with finding root boot
      disks, and some USB drivers assume that this can never happen, so it is
      currently not enabled for any bus type.  Individual drivers can enable
      this right now if they wish, and bus authors can selectivly turn it on
      as well, once they determine that their subsystem will work properly
      with it.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d779249e
    • A
      drivers/base: check errors · f86db396
      Andrew Morton 提交于
      Add lots of return-value checking.
      
      <pcornelia.huck@de.ibm.com>: fix bus_rescan_devices()]
      Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f86db396
    • B
      drivers/base: Platform notify needs to occur before drivers attach to the device · 37022644
      Brian Walsh 提交于
      The platform_notify call for Arm and PPC architectures needs to be called
      before the driver attaches to the device.  The problem only presents itself
      when hotplugging certain devices while the driver is already loaded.
      Signed-off-by: NBrian Walsh <brian@walsh.ws>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      37022644