Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] apm.c: ignore_normal_resume is set a bit too late

This patch causes the ignore_normal_resume flag to be set slightly earlier,
before there is a chance that the apm driver will receive the normal resume
event from the BIOS. (Addresses Debian bug #310865)

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Thomas Hood and committed by
Linus Torvalds
92c6dc59 223230e7

+1 -1
+1 -1
arch/i386/kernel/apm.c
··· 1222 1222 1223 1223 save_processor_state(); 1224 1224 err = set_system_power_state(APM_STATE_SUSPEND); 1225 + ignore_normal_resume = 1; 1225 1226 restore_processor_state(); 1226 1227 1227 1228 local_irq_disable(); ··· 1230 1229 spin_lock(&i8253_lock); 1231 1230 reinit_timer(); 1232 1231 set_time(); 1233 - ignore_normal_resume = 1; 1234 1232 1235 1233 spin_unlock(&i8253_lock); 1236 1234 write_sequnlock(&xtime_lock);