1. 01 5月, 2007 2 次提交
    • L
      ACPI: delete un-reliable concept of cooling mode · eaca2d3f
      Len Brown 提交于
      The scheme where the thermal driver displayed the
      cooling mode /proc/acpi/thermal_zone/*/cooling_mode
      was flawed in two ways.
      
      First, the success of _SCP doesn't actually mean
      that the BIOS moved any trip points.
      On many BIOS, _SCP is present, but does nothing.
      So displaying what _SCP executed actually
      was wrong more times than it was right.
      
      Second, examining the relative position of the
      trip points when the thermal_zone is added
      is insufficient -- as the BIOS reserves the right
      to change the trip points at run-time.
      
      The only reliable way for the user to determine if
      the thermal zone is in active, passive, or critical
      mode is to examine the relative position of the trip points.
      The user can do this without the kernel doing it
      for them by looking in /proc/acpi/thermal_zone/*/trip_points
      
      New contents for /proc/acpi/thermal_zone/*/cooling_mode:
      
      If _SCP available:
      "0 - Active; 1 - Passive\n"
      
      If _SCP unavailable:
      "<setting not supported>\n"
      Signed-off-by: NLen Brown <len.brown@intel.com>
      eaca2d3f
    • L
      ACPI: thermal trip points are read-only · 11ccc0f2
      Len Brown 提交于
      /proc/acpi/thermal_zone/*/trip_points displays
      what the kernel reads from the BIOS via ACPI.
      
      If you echo a string of ':' deliminted numbers to this file
      then it will change what it displays.
      
      But it shouldn't, since the kernel has no way to communicate
      these changes to ACPI thermal zones.  ACPI thermal zone
      trip points are read-only.
      
      The kernel does have the opportunity to ask the BIOS to change
      the trip points with _SCP - Set Cooling Policy.
      
      Request Active Cooling Mode:
      # echo 0 > /proc/acpi/thermal_zone/*/cooling_policy
      
      Request Passive Cooling Mode:
      # echo 1 > /proc/acpi/thermal_zone/*/cooling_policy
      
      However, in practice it is quite rare for the BIOS
      to support the optional _SCP, and it is even more rare
      for the BIOS to export an _SCP that actually changes
      the trip points.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      11ccc0f2
  2. 24 4月, 2007 1 次提交
  3. 16 2月, 2007 2 次提交
  4. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  5. 13 2月, 2007 3 次提交
    • L
      ACPI: delete extra #defines in /drivers/acpi/ drivers · 7cda93e0
      Len Brown 提交于
      Cosmetic only.
      
      Except in a single case, #define ACPI_*_DRIVER_NAME
      were invoked 0 or 1 times.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7cda93e0
    • L
      ACPI: fix acpi_driver.name usage · c2b6705b
      Len Brown 提交于
      It was erroneously used as a description rather than a name.
      
      ie. turn this:
      
      lenb@se7525gp2:/sys> ls bus/acpi/drivers
      ACPI AC Adapter Driver  ACPI Embedded Controller Driver  ACPI Power Resource Driver
      ACPI Battery Driver     ACPI Fan Driver                  ACPI Processor Driver
      ACPI Button Driver      ACPI PCI Interrupt Link Driver   ACPI Thermal Zone Driver
      ACPI container driver   ACPI PCI Root Bridge Driver      hpet
      
      into this:
      
      lenb@se7525gp2:~> ls /sys/bus/acpi/drivers
      ac  battery  button  container  ec  fan  hpet  pci_link  pci_root  power  processor  thermal
      Signed-off-by: NLen Brown <len.brown@intel.com>
      c2b6705b
    • L
      ACPI: clean up ACPI_MODULE_NAME() use · f52fd66d
      Len Brown 提交于
      cosmetic only
      
      Make "module name" actually match the file name.
      Invoke with ';' as leaving it off confuses Lindent and gcc doesn't care.
      Fix indentation where Lindent did get confused.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      f52fd66d
  6. 21 12月, 2006 1 次提交
  7. 16 12月, 2006 1 次提交
  8. 14 10月, 2006 1 次提交
  9. 11 7月, 2006 1 次提交
    • K
      [PATCH] ACPI: fix fan/thermal resume · bed936f7
      Konstantin Karasyov 提交于
      Daniel Ritz <daniel.ritz-ml@swissonline.ch> says:
      
      The acpi driver suspend/resume patches that went in recently caused a regression
      on my box (toshiba tecra 8000 laptop): after resume from swsusp the fan turns on
      keeping blowing cold air out of my notebook. before the patches, the fan was off
      and would only make noise when required. it's the same thing described in
      bugzilla.kernel.org #5000. the acpi suspend/resume patches or at least parts of
      them originate in this bug. now the last patch in the report (attach id 8438)
      actually fixes the problem - for me and the reporter. this is a trimmed down
      version of that patch.
      Signed-off-by: NDaniel Ritz <daniel.ritz@gmx.ch>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
      Cc: Pavel Machek <pavel@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bed936f7
  10. 10 7月, 2006 1 次提交
  11. 30 6月, 2006 3 次提交
  12. 27 6月, 2006 4 次提交
  13. 14 6月, 2006 1 次提交
  14. 15 5月, 2006 1 次提交
  15. 14 5月, 2006 1 次提交
  16. 31 3月, 2006 1 次提交
  17. 01 12月, 2005 1 次提交
  18. 05 8月, 2005 1 次提交
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4