1. 06 Nov, 2008 1 commit
    • Kay Sievers's avatar
      ACPI: struct device - replace bus_id with dev_name(), dev_set_name() · 0794469d
      Kay Sievers authored
      
      This patch is part of a larger patch series which will remove
      the "char bus_id[20]" name string from struct device. The device
      name is managed in the kobject anyway, and without any size
      limitation, and just needlessly copied into "struct device".
      
      To set and read the device name dev_name(dev) and dev_set_name(dev)
      must be used. If your code uses static kobjects, which it shouldn't
      do, "const char *init_name" can be used to statically provide the
      name the registered device should have. At registration time, the
      init_name field is cleared, to enforce the use of dev_name(dev) to
      access the device name at a later time.
      
      We need to get rid of all occurrences of bus_id in the entire tree
      to be able to enable the new interface. Please apply this patch,
      and possibly convert any remaining remaining occurrences of bus_id.
      
      We want to submit a patch to -next, which will remove bus_id from
      "struct device", to find the remaining pieces to convert, and finally
      switch over to the new api, which will remove the 20 bytes array
      and does no longer have a size limitation.
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      Signed-Off-By: default avatarKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      0794469d
  2. 20 Oct, 2008 1 commit
  3. 03 Oct, 2008 1 commit
  4. 04 Jul, 2008 1 commit
  5. 11 Jun, 2008 1 commit
  6. 29 Apr, 2008 1 commit
  7. 27 Dec, 2007 2 commits
    • Signed-off by Yi Yang's avatar
      ACPI: detect invalid argument written to /proc/acpi/alarm · 975c3025
      Signed-off by Yi Yang authored
      
      /proc/acpi/alarm can't be set correctly, here is a sample:
      
      [root@localhost /]# echo "2006 09" > /proc/acpi/alarm
      [root@localhost /]# cat /proc/acpi/alarm
      2007-12-09 09:09:09
      [root@localhost /]# echo "2006 04" > /proc/acpi/alarm
      [root@localhost /]# cat /proc/acpi/alarm
      2007-12-04 04:04:04
      [root@localhost /]#
      
      Obviously, it is wrong, it should consider it as an invalid input.
      
      after this patch:
      
      [root@localhost /]# echo "2008 09" > /proc/acpi/alarm
      -bash: echo: write error: Invalid argument
      [root@localhost /]#
      Signed-off-by: default avatarYi Yang <yi.y.yang@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      975c3025
    • Yi Yang's avatar
      ACPI: /proc/acpi/alarm parsing: handle large numbers properly · 08798029
      Yi Yang authored
      
      In function acpi_system_write_alarm in file drivers/acpi/sleep/proc.c,
      big sec, min, hr, mo, day and yr are counted twice to get reasonable
      values, that is very superfluous, we can do that only once.
      
      In additon, /proc/acpi/alarm can set a related value which can be
      specified as YYYY years MM months DD days HH hours MM minutes SS
      senconds, it isn't a date, so you can specify as +0000-00-00 96:00:00
      , that means 3 days later, current code can't handle such a case.
      
      This patch removes unnecessary code and does with the aforementioned
      situation.
      
      Before applying this patch:
      
      [root@localhost /]# cat /proc/acpi/alarm
      2007-12-00 00:00:00
      [root@localhost /]# echo "0000-00-00 96:180:180" > /proc/acpi/alarm
      [root@localhost /]# cat /proc/acpi/alarm
      0007-12-02 **:**:**
      [root@localhost /]#
      
      After applying this patch:
      
      [root@localhost ~]# echo "2007-12-00 00:00:00" > /proc/acpi/alarm
      [root@localhost ~]# cat /proc/acpi/alarm
      2007-12-00 00:00:00
      [root@localhost ~]# echo "0000-00-00 96:180:180" > /proc/acpi/alarm
      [root@localhost ~]# cat /proc/acpi/alarm
      0007-12-04 03:03:00
      [root@localhost ~]#
      Signed-off-by: default avatarYi Yang <yi.y.yang@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      08798029
  8. 25 Oct, 2007 1 commit
    • Linus Torvalds's avatar
      Fix /proc/acpi/alarm BCD alarm encodings · c67c36e4
      Linus Torvalds authored
      
      This fixes some totally illogical and wrong code that converts things to
      and from BCD mode essentially randomly, does math on values in BCD mode
      etc etc.  Introduce a few helper functions to make it a bit more obvious
      what is going on, and make sure that we always do all the arithmetic
      (and anythign else, for that matter) in binary, not BCD.
      
      Tested by Mark Lord, who found the problem originally, and also pushed
      the patch back and reminded me about it.
      Signed-off-by: default avatarMark Lord <mlord@pobox.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c67c36e4
  9. 28 Aug, 2007 1 commit
  10. 29 Jul, 2007 3 commits
    • Len Brown's avatar
      ACPI: restore CONFIG_ACPI_SLEEP · 673d5b43
      Len Brown authored
      
      Restore the 2.6.22 CONFIG_ACPI_SLEEP build option, but now shadowing the
      new CONFIG_PM_SLEEP option.
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      [ Modified to work with the PM config setup changes. ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      673d5b43
    • Rafael J. Wysocki's avatar
      Introduce CONFIG_SUSPEND for suspend-to-Ram and standby · 296699de
      Rafael J. Wysocki authored
      
      Introduce CONFIG_SUSPEND representing the ability to enter system sleep
      states, such as the ACPI S3 state, and allow the user to choose SUSPEND
      and HIBERNATION independently of each other.
      
      Make HOTPLUG_CPU be selected automatically if SUSPEND or HIBERNATION has
      been chosen and the kernel is intended for SMP systems.
      
      Also, introduce CONFIG_PM_SLEEP which is automatically selected if
      CONFIG_SUSPEND or CONFIG_HIBERNATION is set and use it to select the
      code needed for both suspend and hibernation.
      
      The top-level power management headers and the ACPI code related to
      suspend and hibernation are modified to use the new definitions (the
      changes in drivers/acpi/sleep/main.c are, mostly, moving code to reduce
      the number of ifdefs).
      
      There are many other files in which CONFIG_PM can be replaced with
      CONFIG_PM_SLEEP or even with CONFIG_SUSPEND, but they can be updated in
      the future.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: Linus Torvalds...
      296699de
    • Rafael J. Wysocki's avatar
      Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION · b0cb1a19
      Rafael J. Wysocki authored
      
      Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION to avoid
      confusion (among other things, with CONFIG_SUSPEND introduced in the
      next patch).
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b0cb1a19
  11. 24 Jul, 2007 1 commit
    • Len Brown's avatar
      ACPI: Kconfig: fold /proc/acpi/sleep under CONFIG_ACPI_PROCFS · 43532c8a
      Len Brown authored
      
      /proc/acpi/sleep has had its own "default n" option,
      ACPI_SLEEP_PROC_SLEEP, for many months.
      Time to delete ACPI_SLEEP_PROC_SLEEP.
      
      Users that still need /proc/acpi/sleep can still get it
      along with the other deprecated /proc/acpi files
      by enabling CONFIG_ACPI_PROCFS.
      
      Also delete ACPI_SLEEP_PROC_FS, which was an umbrella
      for /proc/acpi/sleep, wakeup, alarm, because it was
      effectively just a synonym for ACPI_SLEEP.
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      43532c8a
  12. 09 May, 2007 2 commits
  13. 08 May, 2007 1 commit
  14. 07 May, 2007 1 commit
  15. 25 Apr, 2007 1 commit
    • David Brownell's avatar
      ACPI: make /proc/acpi/wakeup more useful · 8aa55591
      David Brownell authored
      
      This updates /proc/acpi/wakeup to be more informative, primarily by showing
      the sysfs node associated with each wakeup-enabled device.  Example:
      
      	Device	S-state	  Status   Sysfs node
      	PCI0	  S4	 disabled  no-bus:pci0000:00
      	PS2M	  S4	 disabled  pnp:00:05
      	PS2K	  S4	 disabled  pnp:00:06
      	UAR1	  S4	 disabled  pnp:00:08
      	USB1	  S3	 disabled  pci:0000:00:03.0
      	USB2	  S3	 disabled  pci:0000:00:03.1
      	USB3	  S3	 disabled
      	USB4	  S3	 disabled  pci:0000:00:03.3
      	S139	  S4	 disabled
      	LAN	  S4	 disabled  pci:0000:00:04.0
      	MDM	  S4	 disabled
      	AUD	  S4	 disabled  pci:0000:00:02.7
      	SLPB	  S4	*enabled
      
      Eventually this file should be removed, but until then it's almost the only
      way we have to tell how the relevant ACPI tables are broken (and cope).  In
      that example, two devices don't actually exist (USB3, S139), one can't issue
      wakeup events (PCI0), and two seem harmlessly (?) confused (MDM and AUD are
      the same PCI device, but it's the _modem_ that does wake-on-ring).
      
      In particular, we need to be sure driver model nodes are properly hooked
      up before we can get rid of this ACPI-only interface for wakeup events.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      8aa55591
  16. 02 Feb, 2007 1 commit
  17. 10 Jul, 2006 1 commit
  18. 10 Sep, 2005 1 commit
  19. 05 Aug, 2005 2 commits
  20. 12 Jul, 2005 1 commit
  21. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      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