[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)
commit3841b0a173cb6fc52163e67c03280543f2412db3
tree38b55ab607add98d3423e6b6b7ef63c1b8a19b47
parenta7a4ad0998dcd682f4968e8ec5fc1259914a1c4a
[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