Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375743
b: refs/heads/master
c: 182a6f7
h: refs/heads/master
i:
  375741: 6c6d5dd
  375739: f087238
  375735: bfb38f9
  375727: 5b186ba
  375711: fa1180a
  375679: cfa98ba
v: v3
  • Loading branch information
Chen Gang authored and Catalin Marinas committed May 13, 2013
1 parent fc2d51a commit c87b830
Show file tree
Hide file tree
Showing 226 changed files with 1,942 additions and 3,350 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f710dd34a46500e135203816c71c3ec567c46fd
refs/heads/master: 182a6f73ec6bc83ce9b72eec20fa1c6901338c16
202 changes: 0 additions & 202 deletions trunk/Documentation/kernel-per-CPU-kthreads.txt

This file was deleted.

15 changes: 7 additions & 8 deletions trunk/Documentation/power/devices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ situations.
System Power Management Phases
------------------------------
Suspending or resuming the system is done in several phases. Different phases
are used for freeze, standby, and memory sleep states ("suspend-to-RAM") and the
are used for standby or memory sleep states ("suspend-to-RAM") and the
hibernation state ("suspend-to-disk"). Each phase involves executing callbacks
for every device before the next phase begins. Not all busses or classes
support all these callbacks and not all drivers use all the callbacks. The
Expand Down Expand Up @@ -309,8 +309,7 @@ execute the corresponding method from dev->driver->pm instead if there is one.

Entering System Suspend
-----------------------
When the system goes into the freeze, standby or memory sleep state,
the phases are:
When the system goes into the standby or memory sleep state, the phases are:

prepare, suspend, suspend_late, suspend_noirq.

Expand Down Expand Up @@ -369,7 +368,7 @@ the devices that were suspended.

Leaving System Suspend
----------------------
When resuming from freeze, standby or memory sleep, the phases are:
When resuming from standby or memory sleep, the phases are:

resume_noirq, resume_early, resume, complete.

Expand Down Expand Up @@ -434,8 +433,8 @@ the system log.

Entering Hibernation
--------------------
Hibernating the system is more complicated than putting it into the other
sleep states, because it involves creating and saving a system image.
Hibernating the system is more complicated than putting it into the standby or
memory sleep state, because it involves creating and saving a system image.
Therefore there are more phases for hibernation, with a different set of
callbacks. These phases always run after tasks have been frozen and memory has
been freed.
Expand Down Expand Up @@ -486,8 +485,8 @@ image forms an atomic snapshot of the system state.

At this point the system image is saved, and the devices then need to be
prepared for the upcoming system shutdown. This is much like suspending them
before putting the system into the freeze, standby or memory sleep state,
and the phases are similar.
before putting the system into the standby or memory sleep state, and the phases
are similar.

9. The prepare phase is discussed above.

Expand Down
4 changes: 2 additions & 2 deletions trunk/Documentation/power/interface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ running. The interface exists in /sys/power/ directory (assuming sysfs
is mounted at /sys).

/sys/power/state controls system power state. Reading from this file
returns what states are supported, which is hard-coded to 'freeze',
'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and 'disk'
returns what states are supported, which is hard-coded to 'standby'
(Power-On Suspend), 'mem' (Suspend-to-RAM), and 'disk'
(Suspend-to-Disk).

Writing to this file one of those strings causes the system to
Expand Down
6 changes: 2 additions & 4 deletions trunk/Documentation/power/notifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ A suspend/hibernation notifier may be used for this purpose.
The subsystems or drivers having such needs can register suspend notifiers that
will be called upon the following events by the PM core:

PM_HIBERNATION_PREPARE The system is going to hibernate, tasks will be frozen
immediately. This is different from PM_SUSPEND_PREPARE
below because here we do additional work between notifiers
and drivers freezing.
PM_HIBERNATION_PREPARE The system is going to hibernate or suspend, tasks will
be frozen immediately.

PM_POST_HIBERNATION The system memory state has been restored from a
hibernation image or an error occurred during
Expand Down
30 changes: 13 additions & 17 deletions trunk/Documentation/power/states.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,12 @@
System Power Management States


The kernel supports four power management states generically, though
one is generic and the other three are dependent on platform support
code to implement the low-level details for each state.
This file describes each state, what they are
The kernel supports three power management states generically, though
each is dependent on platform support code to implement the low-level
details for each state. This file describes each state, what they are
commonly called, what ACPI state they map to, and what string to write
to /sys/power/state to enter that state

state: Freeze / Low-Power Idle
ACPI state: S0
String: "freeze"

This state is a generic, pure software, light-weight, low-power state.
It allows more energy to be saved relative to idle by freezing user
space and putting all I/O devices into low-power states (possibly
lower-power than available at run time), such that the processors can
spend more time in their idle states.
This state can be used for platforms without Standby/Suspend-to-RAM
support, or it can be used in addition to Suspend-to-RAM (memory sleep)
to provide reduced resume latency.


State: Standby / Power-On Suspend
ACPI State: S1
Expand All @@ -36,6 +22,9 @@ We try to put devices in a low-power state equivalent to D1, which
also offers low power savings, but low resume latency. Not all devices
support D1, and those that don't are left on.

A transition from Standby to the On state should take about 1-2
seconds.


State: Suspend-to-RAM
ACPI State: S3
Expand All @@ -53,6 +42,9 @@ transition back to the On state.
For at least ACPI, STR requires some minimal boot-strapping code to
resume the system from STR. This may be true on other platforms.

A transition from Suspend-to-RAM to the On state should take about
3-5 seconds.


State: Suspend-to-disk
ACPI State: S4
Expand Down Expand Up @@ -82,3 +74,7 @@ low-power state (like ACPI S4), or it may simply power down. Powering
down offers greater savings, and allows this mechanism to work on any
system. However, entering a real low-power state allows the user to
trigger wake up events (e.g. pressing a key or opening a laptop lid).

A transition from Suspend-to-Disk to the On state should take about 30
seconds, though it's typically a bit more with the current
implementation.
2 changes: 1 addition & 1 deletion trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -7854,7 +7854,7 @@ L: linux-scsi@vger.kernel.org
L: target-devel@vger.kernel.org
L: http://groups.google.com/group/linux-iscsi-target-dev
W: http://www.linux-iscsi.org
T: git git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master
T: git git://git.kernel.org/pub/scm/linux/kernel/git/nab/lio-core.git master
S: Supported
F: drivers/target/
F: include/target/
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ config USE_GENERIC_SMP_HELPERS
config GENERIC_SMP_IDLE_THREAD
bool

config GENERIC_IDLE_POLL_SETUP
bool

# Select if arch init_task initializer is different to init/init_task.c
config ARCH_INIT_TASK
bool
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ config ARM
select HAVE_GENERIC_HARDIRQS
select HAVE_HW_BREAKPOINT if (PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7))
select HAVE_IDE if PCI || ISA || PCMCIA
select HAVE_IRQ_TIME_ACCOUNTING
select HAVE_KERNEL_GZIP
select HAVE_KERNEL_LZMA
select HAVE_KERNEL_LZO
Expand Down Expand Up @@ -489,7 +488,7 @@ config ARCH_IXP4XX
config ARCH_DOVE
bool "Marvell Dove"
select ARCH_REQUIRE_GPIOLIB
select CPU_PJ4
select CPU_V7
select GENERIC_CLOCKEVENTS
select MIGHT_HAVE_PCI
select PINCTRL
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ define archhelp
echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
echo '* xipImage - XIP kernel image, if configured (arch/$(ARCH)/boot/xipImage)'
echo ' uImage - U-Boot wrapped zImage'
echo ' bootpImage - Combined zImage and initial RAM disk'
echo ' bootpImage - Combined zImage and initial RAM disk'
echo ' (supply initrd image via make variable INITRD=<path>)'
echo '* dtbs - Build device tree blobs for enabled boards'
echo ' install - Install uncompressed kernel'
Expand Down
Loading

0 comments on commit c87b830

Please sign in to comment.