]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] APM Screen Blanking fix
authorJordan Crouse <jordan.crouse@amd.com>
Fri, 6 Jan 2006 08:12:16 +0000 (00:12 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:39 +0000 (08:33 -0800)
commitb5e0c0081296b3480e4bdb83d17f38c27462737e
tree38b55ab607add98d3423e6b6b7ef63c1b8a19b47
parent3e1f569a1eb63a832922325b22c06ba5746ac03c
[PATCH] APM Screen Blanking fix

- Fix screen blanking on BIOSes that return APM_NOT_ENGAGED when APM enabled
  screen blanking is not turned on.

  The original code only tried to set the state on device 0x100, and then
  0x1FF, and I added 0x101 to the mix too.

- Clean up logic in apm_console_blank().

- Prevent the error message from printing out twice.

Cc: Jordan Crouse <jordan.crouse@amd.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/apm.c