1. 28 1月, 2014 1 次提交
  2. 14 8月, 2013 3 次提交
  3. 13 8月, 2013 1 次提交
  4. 24 11月, 2012 3 次提交
  5. 13 1月, 2012 1 次提交
  6. 31 3月, 2011 1 次提交
  7. 28 6月, 2010 1 次提交
  8. 20 5月, 2010 1 次提交
  9. 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
  10. 30 12月, 2009 1 次提交
  11. 08 12月, 2009 1 次提交
  12. 05 12月, 2009 1 次提交
  13. 18 10月, 2009 1 次提交
  14. 06 10月, 2009 1 次提交
  15. 14 9月, 2009 1 次提交
  16. 09 8月, 2009 1 次提交
  17. 06 8月, 2009 1 次提交
    • T
      Input: wistron_btns - support Prestigio Wifi RF kill button · 19493478
      TJ 提交于
      The Prestigio 157, an old no-name clone laptop uses input keys very
      similar to the Wistron 1557/MS2141 with the addition of BIOS-controlled
      wireless radio frequency kill switch.
      
      This patch adds support for the RF kill switch control and adds manual
      identification of the model.
      
      The Prestigio does not expose any recognisable identity via dmidecode
      and so requires manual selection at module init using
      
      force=1 keymap=prestigio
      Signed-off-by: NTJ <ubuntu@tjworld.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      19493478
  18. 13 7月, 2009 1 次提交
    • G
      Input: wistron_btns - recognize Maxdata Pro 7000 notebooks · e705cee4
      Giuseppe Mazzotta 提交于
      This patch adds DMI information to automatically load the correct
      layout for the Maxdata Pro 7000X/DX notebook models. Such notebooks
      are clones of Fujitsu Amilo V2000, the hook for the v2000 is being
      used and I have tested that perfectly works.
      
      The immediate result of integrating this patch is that the five
      special buttons will work on these specific notebook models and that
      the RF killswitch will not be activated after suspend. This patch
      definitively obsoletes the fsam7400 module which I was still needing
      to enable wifi and to fix the RF killswitch suspend problem; in the
      current 2.6.30 kernel it is necessary to load the wistron_btns module
      with options 'force=1 keymap=1557/MS2141', which was not anyway a
      complete workaround.
      Signed-off-by: NGiuseppe Mazzotta <g.mazzotta@iragan.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      e705cee4
  19. 09 8月, 2008 1 次提交
  20. 30 6月, 2008 1 次提交
  21. 07 2月, 2008 1 次提交
  22. 10 10月, 2007 1 次提交
    • J
      drivers/firmware: const-ify DMI API and internals · 1855256c
      Jeff Garzik 提交于
      Three main sets of changes:
      
      1) dmi_get_system_info() return value should have been marked const,
         since callers should not be changing that data.
      
      2) const-ify DMI internals, since DMI firmware tables should,
         whenever possible, be marked const to ensure we never ever write to
         that data area.
      
      3) const-ify DMI API, to enable marking tables const where possible
         in low-level drivers.
      
      And if we're really lucky, this might enable some additional
      optimizations on the part of the compiler.
      
      The bulk of the changes are #2 and #3, which are interrelated.  #1 could
      have been a separate patch, but it was so small compared to the others,
      it was easier to roll it into this changeset.
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      1855256c
  23. 10 7月, 2007 4 次提交
  24. 30 4月, 2007 1 次提交
  25. 12 4月, 2007 3 次提交
    • E
      Input: wistron - declare keymaps as initdata · 55d29c98
      Eric Piel 提交于
      As the number of keymaps increases and is very unlikely to
      reduce, this patch helps to reduce memory consumption by
      declaring all keymaps as __initdata and copying right keymap
      during DMI detection. On x86 this make the module size at
      runtime going from 10616 to 9428: a bit more than 1kb saved.
      Signed-off-by: NEric Piel <eric.piel@tremplin-utc.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      55d29c98
    • E
      Input: wistron - introduce generic keymap · 7b0a4cd7
      Eric Piel 提交于
      It turns out that the keymaps in the wistron driver are almost the
      same, the main difference being some keys which may not exist and
      leds which might not be present. Therefore it's possible to write
      a generic keymap which would allow the use of an unknown keyboard
      with little drawbacks. The user can select it specifying the parameter
      "keymap=generic".
      Signed-off-by: NEric Piel <eric.piel@tremplin-utc.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      7b0a4cd7
    • E
      Input: wistron - add acerhk laptop database · 6480e2a2
      Eric Piel 提交于
      Acerhk supports already a lot of laptops. Lets import its database so
      that everyone can benefit of the work of Olaf Tauber. Only the "tm_new"
      laptops were imported. "tm_old" laptops could be possible but requires
      more testing and probably only few laptops are still alive. "dritek"
      laptops should probably be imported into a different driver. Also compress
      the keymaps by fitting each entry on an int. Most of the dmi matching was
      written based on google searches, so it's rather prone to errors. That's
      why I'm asking people to confirm it works.
      
      Support to generate switch input events was added as some laptops indicate
      lid open/close through this interface.
      
      This adds the following hardware:
      Acer TravelMate 370
      Acer TravelMate 380
      Acer TravelMate C300
      Acer TravelMate C100
      Acer TravelMate C110
      Acer TravelMate 250
      Acer TravelMate 350
      Acer TravelMate 620
      Acer TravelMate 630
      Acer TravelMate 220
      Acer TravelMate 230
      Acer TravelMate 260
      Acer TravelMate 280
      Acer TravelMate 360
      Acer TravelMate 2100
      Acer TravelMate 2410
      Acer Aspire 1500
      Acer Aspire 1600
      Acer Aspire 3020
      Acer Aspire 5020
      Medion MD 2900
      Medion MD 40100
      Medion MD 95400
      Medion MD 96500
      Fujitsu Siemens Amilo 7820
      Signed-off-by: NEric Piel <eric.piel@tremplin-utc.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      6480e2a2
  26. 07 3月, 2007 1 次提交
  27. 10 2月, 2007 1 次提交
  28. 12 10月, 2006 1 次提交
  29. 02 10月, 2006 2 次提交
  30. 23 8月, 2006 1 次提交