1. 12 5月, 2012 2 次提交
  2. 05 5月, 2012 1 次提交
    • L
      ACPI: Fix D3hot v D3cold confusion · 1cc0c998
      Lin Ming 提交于
      Before this patch, ACPI_STATE_D3 incorrectly referenced D3hot
      in some places, but D3cold in other places.
      
      After this patch, ACPI_STATE_D3 always means ACPI_STATE_D3_COLD;
      and all references to D3hot use ACPI_STATE_D3_HOT.
      
      ACPI's _PR3 method is used to enter both D3hot and D3cold states.
      What distinguishes D3hot from D3cold is the presence _PR3
      (Power Resources for D3hot)  If these resources are all ON,
      then the state is D3hot.  If _PR3 is not present,
      or all _PR0 resources for the devices are OFF,
      then the state is D3cold.
      
      This patch applies after Linux-3.4-rc1.
      A future syntax cleanup may remove ACPI_STATE_D3
      to emphasize that it always means ACPI_STATE_D3_COLD.
      Signed-off-by: NLin Ming <ming.m.lin@intel.com>
      Acked-by: NRafael J. Wysocki <rjw@sisk.pl>
      Reviewed-by: NAaron Lu <aaron.lu@amd.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      1cc0c998
  3. 30 3月, 2012 3 次提交
  4. 29 3月, 2012 1 次提交
  5. 27 3月, 2012 1 次提交
    • L
      ACPICA: Sleep/Wake interfaces: optionally execute _GTS and _BFS · 8a73b17e
      Lin Ming 提交于
      Enhanced the sleep/wake interfaces to optionally execute the
      _GTS method (Going To Sleep), and the _BFS method (Back From
      Sleep).  Windows apparently does not execute these methods, and
      therefore these methods are often untested. It has been seen on
      some systems where the execution of these methods causes errors
      and also prevents the machine from entering S5. It is therefore
      suggested that host operating systems do not execute these methods
      by default. In the future, perhaps these methods can be optionally
      executed based on the age of the system and/or what is the newest
      version of Windows that the BIOS asks for via _OSI.
      Signed-off-by: NLin Ming <ming.m.lin@intel.com>
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      8a73b17e
  6. 22 3月, 2012 9 次提交
  7. 14 3月, 2012 1 次提交
  8. 27 1月, 2012 1 次提交
  9. 21 1月, 2012 2 次提交
    • M
      ACPI: Remove ./drivers/acpi/atomicio.[ch] · 1001a3a3
      Myron Stowe 提交于
      With the conversion of atomicio's routines in place (see commits
      6f68c91c and 700130b4), atomicio.[ch] can be removed, replacing
      the APEI specific pre-mapping capabilities with the more generalized
      versions that drivers/acpi/osl.c provides.
      Signed-off-by: NMyron Stowe <myron.stowe@redhat.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      1001a3a3
    • M
      ACPI, APEI: Add 64-bit read/write support for APEI on i386 · e615bf5b
      Myron Stowe 提交于
      Base ACPI (CA) currently does not support atomic 64-bit reads and writes
      (acpi_read() and acpi_write() split 64-bit loads/stores into two
      32-bit transfers) yet APEI expects 64-bit transfer capability, even
      when running on 32-bit systems.
      
      This patch implements 64-bit read and write routines for APEI usage.
      
      This patch re-factors similar functionality introduced in commit
      04c25997, bringing it into the ACPI subsystem in preparation for
      removing ./drivers/acpi/atomicio.[ch].  In the implementation I have
      replicated acpi_os_read_memory() and acpi_os_write_memory(), creating
      64-bit versions for APEI to utilize, as opposed to something more
      elegant.  My thinking is that we should attempt to see if we can get
      ACPI's CA/OSL changed so that the existing acpi_read() and acpi_write()
      interfaces are natively 64-bit capable and then subsequently remove the
      replication.
      Signed-off-by: NMyron Stowe <myron.stowe@redhat.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e615bf5b
  10. 20 1月, 2012 1 次提交
  11. 18 1月, 2012 1 次提交
  12. 17 1月, 2012 14 次提交
  13. 13 1月, 2012 1 次提交
  14. 07 11月, 2011 2 次提交
    • D
      cpuidle: Single/Global registration of idle states · 46bcfad7
      Deepthi Dharwar 提交于
      This patch makes the cpuidle_states structure global (single copy)
      instead of per-cpu. The statistics needed on per-cpu basis
      by the governor are kept per-cpu. This simplifies the cpuidle
      subsystem as state registration is done by single cpu only.
      Having single copy of cpuidle_states saves memory. Rare case
      of asymmetric C-states can be handled within the cpuidle driver
      and architectures such as POWER do not have asymmetric C-states.
      
      Having single/global registration of all the idle states,
      dynamic C-state transitions on x86 are handled by
      the boot cpu. Here, the boot cpu  would disable all the devices,
      re-populate the states and later enable all the devices,
      irrespective of the cpu that would receive the notification first.
      
      Reference:
      https://lkml.org/lkml/2011/4/25/83Signed-off-by: NDeepthi Dharwar <deepthi@linux.vnet.ibm.com>
      Signed-off-by: NTrinabh Gupta <g.trinabh@gmail.com>
      Tested-by: NJean Pihet <j-pihet@ti.com>
      Reviewed-by: NKevin Hilman <khilman@ti.com>
      Acked-by: NArjan van de Ven <arjan@linux.intel.com>
      Acked-by: NKevin Hilman <khilman@ti.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      46bcfad7
    • B
      ACPI: Fix CONFIG_ACPI_DOCK=n compiler warning · c1056b42
      Bart Van Assche 提交于
      Recently the ACPI ops structs were constified but the inline version
      of register_hotplug_dock_device() was overlooked (see also commit
      9c8b04be, June 25 2011). Update the inline function
      register_hotplug_dock_device() that is enabled with
      CONFIG_ACPI_DOCK=n too. This patch fixes at least the following
      compiler warnings:
      
      drivers/ata/libata-acpi.c: In function .ata_acpi_associate.:
      drivers/ata/libata-acpi.c:266:11: warning: passing argument 2 of .register_hotplug_dock_device. discards qualifiers from pointer target type
      include/acpi/acpi_drivers.h:146:19: note: expected .struct acpi_dock_ops *. but argument is of type .const struct acpi_dock_ops *.
      drivers/ata/libata-acpi.c:275:11: warning: passing argument 2 of .register_hotplug_dock_device. discards qualifiers from pointer target type
      include/acpi/acpi_drivers.h:146:19: note: expected .struct acpi_dock_ops *. but argument is of type .const struct acpi_dock_ops *.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NLen Brown <len.brown@intel.com>
      c1056b42