Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
70ec75c5
Commit
70ec75c5
authored
Feb 07, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'release', 'misc' and 'misc-2.6.25' into release
parents
4f4ae0d4
2fdf0741
23b168d4
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
25 additions
and
19 deletions
+25
-19
Documentation/kernel-parameters.txt
Documentation/kernel-parameters.txt
+4
-2
Documentation/power/swsusp.txt
Documentation/power/swsusp.txt
+5
-0
arch/ia64/kernel/acpi.c
arch/ia64/kernel/acpi.c
+1
-1
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/acpi/boot.c
+2
-2
drivers/acpi/hardware/hwsleep.c
drivers/acpi/hardware/hwsleep.c
+1
-1
drivers/acpi/osl.c
drivers/acpi/osl.c
+2
-1
drivers/acpi/pci_irq.c
drivers/acpi/pci_irq.c
+1
-4
drivers/acpi/power.c
drivers/acpi/power.c
+2
-4
drivers/acpi/sleep/main.c
drivers/acpi/sleep/main.c
+1
-1
kernel/power/Kconfig
kernel/power/Kconfig
+6
-3
No files found.
Documentation/kernel-parameters.txt
View file @
70ec75c5
...
...
@@ -147,8 +147,10 @@ and is between 256 and 4096 characters. It is defined in the file
default: 0
acpi_sleep= [HW,ACPI] Sleep options
Format: { s3_bios, s3_mode }
See Documentation/power/video.txt
Format: { s3_bios, s3_mode, s3_beep }
See Documentation/power/video.txt for s3_bios and s3_mode.
s3_beep is for debugging; it makes the PC's speaker beep
as soon as the kernel's real-mode entry point is called.
acpi_sci= [HW,ACPI] ACPI System Control Interrupt trigger mode
Format: { level | edge | high | low }
...
...
Documentation/power/swsusp.txt
View file @
70ec75c5
...
...
@@ -386,6 +386,11 @@ before suspending; then remount them after resuming.
There is a work-around for this problem. For more information, see
Documentation/usb/persist.txt.
Q: Can I suspend-to-disk using a swap partition under LVM?
A: No. You can suspend successfully, but you'll not be able to
resume. uswsusp should be able to work with LVM. See suspend.sf.net.
Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were
compiled with the similar configuration files. Anyway I found that
suspend to disk (and resume) is much slower on 2.6.16 compared to
...
...
arch/ia64/kernel/acpi.c
View file @
70ec75c5
...
...
@@ -166,7 +166,7 @@ int acpi_request_vector(u32 int_type)
return
vector
;
}
char
*
__acpi_map_table
(
unsigned
long
phys_addr
,
unsigned
long
size
)
char
*
__
init
__
acpi_map_table
(
unsigned
long
phys_addr
,
unsigned
long
size
)
{
return
__va
(
phys_addr
);
}
...
...
arch/x86/kernel/acpi/boot.c
View file @
70ec75c5
...
...
@@ -106,7 +106,7 @@ enum acpi_irq_model_id acpi_irq_model = ACPI_IRQ_MODEL_PIC;
#ifdef CONFIG_X86_64
/* rely on all ACPI tables being in the direct mapping */
char
*
__acpi_map_table
(
unsigned
long
phys_addr
,
unsigned
long
size
)
char
*
__
init
__
acpi_map_table
(
unsigned
long
phys_addr
,
unsigned
long
size
)
{
if
(
!
phys_addr
||
!
size
)
return
NULL
;
...
...
@@ -131,7 +131,7 @@ char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
* from the fixed base. That's why we start at FIX_IO_APIC_BASE_END and
* count idx down while incrementing the phys address.
*/
char
*
__acpi_map_table
(
unsigned
long
phys
,
unsigned
long
size
)
char
*
__
init
__
acpi_map_table
(
unsigned
long
phys
,
unsigned
long
size
)
{
unsigned
long
base
,
offset
,
mapped_size
;
int
idx
;
...
...
drivers/acpi/hardware/hwsleep.c
View file @
70ec75c5
...
...
@@ -286,13 +286,13 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state)
}
/*
* 1) Disable/Clear all GPEs
* 2) Enable all wakeup GPEs
*/
status
=
acpi_hw_disable_all_gpes
();
if
(
ACPI_FAILURE
(
status
))
{
return_ACPI_STATUS
(
status
);
}
acpi_gbl_system_awake_and_running
=
FALSE
;
status
=
acpi_hw_enable_all_wakeup_gpes
();
...
...
drivers/acpi/osl.c
View file @
70ec75c5
...
...
@@ -258,7 +258,8 @@ acpi_physical_address __init acpi_os_get_root_pointer(void)
}
}
void
__iomem
*
acpi_os_map_memory
(
acpi_physical_address
phys
,
acpi_size
size
)
void
__iomem
*
__init_refok
acpi_os_map_memory
(
acpi_physical_address
phys
,
acpi_size
size
)
{
if
(
phys
>
ULONG_MAX
)
{
printk
(
KERN_ERR
PREFIX
"Cannot map memory that high
\n
"
);
...
...
drivers/acpi/pci_irq.c
View file @
70ec75c5
...
...
@@ -51,10 +51,8 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment,
int
bus
,
int
device
,
int
pin
)
{
struct
list_head
*
node
=
NULL
;
struct
acpi_prt_entry
*
entry
=
NULL
;
if
(
!
acpi_prt
.
count
)
return
NULL
;
...
...
@@ -64,8 +62,7 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment,
*
*/
spin_lock
(
&
acpi_prt_lock
);
list_for_each
(
node
,
&
acpi_prt
.
entries
)
{
entry
=
list_entry
(
node
,
struct
acpi_prt_entry
,
node
);
list_for_each_entry
(
entry
,
&
acpi_prt
.
entries
,
node
)
{
if
((
segment
==
entry
->
id
.
segment
)
&&
(
bus
==
entry
->
id
.
bus
)
&&
(
device
==
entry
->
id
.
device
)
...
...
drivers/acpi/power.c
View file @
70ec75c5
...
...
@@ -458,11 +458,9 @@ int acpi_power_transition(struct acpi_device *device, int state)
}
end:
if
(
result
)
{
if
(
result
)
device
->
power
.
state
=
ACPI_STATE_UNKNOWN
;
printk
(
KERN_WARNING
PREFIX
"Transitioning device [%s] to D%d
\n
"
,
device
->
pnp
.
bus_id
,
state
);
}
else
{
else
{
/* We shouldn't change the state till all above operations succeed */
device
->
power
.
state
=
state
;
}
...
...
drivers/acpi/sleep/main.c
View file @
70ec75c5
...
...
@@ -170,7 +170,7 @@ static int acpi_pm_enter(suspend_state_t pm_state)
/* Reprogram control registers and execute _BFS */
acpi_leave_sleep_state_prep
(
acpi_state
);
/* ACPI 3.0 specs (P62) says that it's the respons
abil
ty
/* ACPI 3.0 specs (P62) says that it's the respons
ibili
ty
* of the OSPM to clear the status bit [ implying that the
* POWER_BUTTON event should not reach userspace ]
*/
...
...
kernel/power/Kconfig
View file @
70ec75c5
...
...
@@ -74,8 +74,8 @@ config PM_TRACE_RTC
RTC across reboots, so that you can debug a machine that just hangs
during suspend (or more commonly, during resume).
To use this debugging feature you should attempt to suspend the
machine,
then reboot it,
then run
To use this debugging feature you should attempt to suspend the
machine, reboot it and
then run
dmesg -s 1000000 | grep 'hash matches'
...
...
@@ -123,7 +123,10 @@ config HIBERNATION
called "hibernation" in user interfaces. STD checkpoints the
system and powers it off; and restores that checkpoint on reboot.
You can suspend your machine with 'echo disk > /sys/power/state'.
You can suspend your machine with 'echo disk > /sys/power/state'
after placing resume=/dev/swappartition on the kernel command line
in your bootloader's configuration file.
Alternatively, you can use the additional userland tools available
from <http://suspend.sf.net>.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment