1. 01 10月, 2010 1 次提交
  2. 19 7月, 2010 1 次提交
  3. 06 5月, 2010 1 次提交
  4. 29 4月, 2010 1 次提交
  5. 04 4月, 2010 1 次提交
  6. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  7. 15 3月, 2010 2 次提交
  8. 16 12月, 2009 3 次提交
    • A
      pnpbios: convert to seq_file · 5116fa2b
      Alexey Dobriyan 提交于
      Convert code away from ->read_proc/->write_proc interfaces.  Switch to
      proc_create()/proc_create_data() which make addition of proc entries
      reliable wrt NULL ->proc_fops, NULL ->data and so on.
      
      Problem with ->read_proc et al is described here commit
      786d7e16 "Fix rmmod/read/write races in
      /proc entries"
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Cc: Adam Belay <abelay@mit.edu>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5116fa2b
    • B
      PNP: add interface to retrieve ACPI device from a PNPACPI device · 9065ce45
      Bjorn Helgaas 提交于
      Add pnp_acpi_device(pnp_dev), which takes a PNP device and returns the
      associated ACPI device (or NULL, if the device is not a PNPACPI device).
      
      This allows us to write a PNP driver that can manage both traditional
      PNPBIOS and ACPI devices, treating ACPI-only functionality as an optional
      extension.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      9065ce45
    • A
      tree-wide: convert open calls to remove spaces to skip_spaces() lib function · e7d2860b
      André Goddard Rosa 提交于
      Makes use of skip_spaces() defined in lib/string.c for removing leading
      spaces from strings all over the tree.
      
      It decreases lib.a code size by 47 bytes and reuses the function tree-wide:
         text    data     bss     dec     hex filename
        64688     584     592   65864   10148 (TOTALS-BEFORE)
        64641     584     592   65817   10119 (TOTALS-AFTER)
      
      Also, while at it, if we see (*str && isspace(*str)), we can be sure to
      remove the first condition (*str) as the second one (isspace(*str)) also
      evaluates to 0 whenever *str == 0, making it redundant. In other words,
      "a char equals zero is never a space".
      
      Julia Lawall tried the semantic patch (http://coccinelle.lip6.fr) below,
      and found occurrences of this pattern on 3 more files:
          drivers/leds/led-class.c
          drivers/leds/ledtrig-timer.c
          drivers/video/output.c
      
      @@
      expression str;
      @@
      
      ( // ignore skip_spaces cases
      while (*str &&  isspace(*str)) { \(str++;\|++str;\) }
      |
      - *str &&
      isspace(*str)
      )
      Signed-off-by: NAndré Goddard Rosa <andre.goddard@gmail.com>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Neil Brown <neilb@suse.de>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: David Howells <dhowells@redhat.com>
      Cc: <linux-ext4@vger.kernel.org>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: Patrick McHardy <kaber@trash.net>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e7d2860b
  9. 11 12月, 2009 1 次提交
  10. 04 12月, 2009 1 次提交
  11. 05 11月, 2009 2 次提交
  12. 26 9月, 2009 3 次提交
  13. 22 9月, 2009 1 次提交
  14. 27 8月, 2009 1 次提交
    • B
      ACPICA: Major update for acpi_get_object_info external interface · 15b8dd53
      Bob Moore 提交于
      Completed a major update for the acpi_get_object_info external interface.
      Changes include:
       - Support for variable, unlimited length HID, UID, and CID strings
       - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.)
       - Call the _SxW power methods on behalf of a device object
       - Determine if a device is a PCI root bridge
       - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
      These changes will require an update to all callers of this interface.
      See the ACPICA Programmer Reference for details.
      
      Also, update all invocations of acpi_get_object_info interface
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLin Ming <ming.m.lin@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      15b8dd53
  15. 10 8月, 2009 1 次提交
  16. 08 8月, 2009 1 次提交
  17. 20 7月, 2009 1 次提交
  18. 05 6月, 2009 1 次提交
  19. 28 5月, 2009 1 次提交
    • B
      PNPACPI: parse Extended Address Space Descriptors · 8cb24c8f
      Bjorn Helgaas 提交于
      Extended Address Space Descriptors are new in ACPI 3.0 and allow the
      BIOS to communicate device resource cacheability attributes (write-back,
      write-through, uncacheable, etc) to the OS.
      
      Previously, PNPACPI ignored these descriptors, so if a BIOS used them,
      a device could be responding at addresses the OS doesn't know about.
      This patch adds support for these descriptors in _CRS and _PRS.  We
      don't attempt to encode them for _SRS (just like we don't attempt to
      encode the existing 16-, 32-, and 64-bit Address Space Descriptors).
      
      Unfortunately, I don't have a way to test this.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      8cb24c8f
  20. 08 5月, 2009 1 次提交
  21. 28 4月, 2009 1 次提交
    • Y
      irq: change ACPI GSI APIs to also take a device argument · a2f809b0
      Yinghai Lu 提交于
      We want to use dev_to_node() later on, to be aware of the 'home node'
      of the GSI in question.
      
      [ Impact: cleanup, prepare the IRQ code to be more NUMA aware ]
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Acked-by: NLen Brown <lenb@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: linux-acpi@vger.kernel.org
      Cc: linux-ia64@vger.kernel.org
      LKML-Reference: <49F65560.20904@kernel.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      a2f809b0
  22. 07 4月, 2009 1 次提交
  23. 04 4月, 2009 1 次提交
    • W
      Enable PNPACPI _PSx Support, v3 · 6328a574
      Witold Szczeponik 提交于
      (This is an update to the patch presented earlier in
      http://lkml.org/lkml/2008/12/8/284, with new error handling.)
      
      This patch sets the power of PnP ACPI devices to D0 when they
      are activated and to D3 when they are disabled.  The latter is
      in correspondence with the ACPI 3.0 specification, whereas the
      former is added in order to be able to power up a device after
      it has been previously disabled (or when booting up a system).
      (As a consequence, the patch makes the PnP ACPI code more ACPI
      compliant.)
      
      Section 6.2.2 of the ACPI Specification (at least versions 1.0b
      and 3.0a) states: "Prior to running this control method [_DIS],
      the OS[PM] will have already put the device in the D3 state."
      Unfortunately, there is no clear statement as to when to put
      a device in the D0 state. :-( Therefore, the patch executes the
      method calls as _PS3/_DIS and _SRS/_PS0. What is clear: "If the
      device is disabled, _SRS enables the device at the specified
      resources." (From the ACPI 3.0a Specification.)
      
      The patch fixes a problem with some IBM ThinkPads (at least the
      600E and the 600X) where the serial ports have a dedicated
      power source that needs to be brought up before the serial port
      can be used.  Without this patch, the serial port is enabled
      but has no power. (In the past, the tpctl utility had to be
      utilized to turn on the power, but support for this feature
      stopped with version 5.9 as it did not support the more recent
      kernel versions.)
      
      The error handlers that handle any errors that can occur during
      the power up/power down phases return the error codes to the
      caller directly.  Comments welcome! :-)
      
      No regressions were observed on hardware that does not require
      this patch.
      
      The patch is applied against 2.6.27.x.
      Signed-off-by: NWitold Szczeponik <Witold.Szczeponik@gmx.net>
      Acked-by: NZhao Yakui <yakui.zhao@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      6328a574
  24. 03 4月, 2009 2 次提交
  25. 07 1月, 2009 1 次提交
  26. 01 1月, 2009 1 次提交
  27. 31 12月, 2008 1 次提交
  28. 05 11月, 2008 1 次提交
  29. 23 10月, 2008 1 次提交
  30. 17 10月, 2008 4 次提交