diff options
-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 = { |