diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2005-06-25 17:57:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:46 -0400 |
commit | 719e711050482be667dafd39ec787859d353931c (patch) | |
tree | 54580a25fc0a0f6167f7d15be9a7297808b28a04 /arch/x86_64 | |
parent | cee5dab4856f51c5cad3aecc630ad0a4d2217a85 (diff) |
[PATCH] kexec: x86_64: add i8259 shutdown method
From: Eric W. Biederman <ebiederm@xmission.com
The following patch simply adds a shutdown method to the x86_64 i8259 code.
Signed-off-by: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/i8259.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/i8259.c b/arch/x86_64/kernel/i8259.c index 19eafa0aa95c..a89169095129 100644 --- a/arch/x86_64/kernel/i8259.c +++ b/arch/x86_64/kernel/i8259.c | |||
@@ -414,10 +414,22 @@ static int i8259A_suspend(struct sys_device *dev, pm_message_t state) | |||
414 | return 0; | 414 | return 0; |
415 | } | 415 | } |
416 | 416 | ||
417 | static int i8259A_shutdown(struct sys_device *dev) | ||
418 | { | ||
419 | /* Put the i8259A into a quiescent state that | ||
420 | * the kernel initialization code can get it | ||
421 | * out of. | ||
422 | */ | ||
423 | outb(0xff, 0x21); /* mask all of 8259A-1 */ | ||
424 | outb(0xff, 0xA1); /* mask all of 8259A-1 */ | ||
425 | return 0; | ||
426 | } | ||
427 | |||
417 | static struct sysdev_class i8259_sysdev_class = { | 428 | static struct sysdev_class i8259_sysdev_class = { |
418 | set_kset_name("i8259"), | 429 | set_kset_name("i8259"), |
419 | .suspend = i8259A_suspend, | 430 | .suspend = i8259A_suspend, |
420 | .resume = i8259A_resume, | 431 | .resume = i8259A_resume, |
432 | .shutdown = i8259A_shutdown, | ||
421 | }; | 433 | }; |
422 | 434 | ||
423 | static struct sys_device device_i8259A = { | 435 | static struct sys_device device_i8259A = { |