[WATCHDOG] pcwd.c general clean-up after patches

removal of includes (since we don't use kmalloc and
TASK_INTERRUPTABLE anymore).
Addition of missing commands.
Printk that lets the user know when the module was
unloaded.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

+9 -2
+9 -2
drivers/char/watchdog/pcwd.c
··· 66 #include <linux/fs.h> /* For file operations */ 67 #include <linux/ioport.h> /* For io-port access */ 68 #include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */ 69 - #include <linux/sched.h> /* TASK_INTERRUPTIBLE, set_current_state() and friends */ 70 - #include <linux/slab.h> /* For kmalloc */ 71 72 #include <asm/uaccess.h> /* For copy_to_user/put_user/... */ 73 #include <asm/io.h> /* For inb/outb/... */ ··· 124 #define CMD_ISA_VERSION_HUNDRETH 0x03 125 #define CMD_ISA_VERSION_MINOR 0x04 126 #define CMD_ISA_SWITCH_SETTINGS 0x05 127 #define CMD_ISA_DELAY_TIME_2SECS 0x0A 128 #define CMD_ISA_DELAY_TIME_4SECS 0x0B 129 #define CMD_ISA_DELAY_TIME_8SECS 0x0C 130 131 /* 132 * We are using an kernel timer to do the pinging of the watchdog ··· 476 if (temp_panic) { 477 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 478 kernel_power_off(); 479 } 480 } 481 } else { ··· 488 if (temp_panic) { 489 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 490 kernel_power_off(); 491 } 492 } 493 } ··· 988 { 989 if (pcwd_private.io_addr) 990 pcwatchdog_exit(); 991 } 992 993 module_init(pcwd_init_module);
··· 66 #include <linux/fs.h> /* For file operations */ 67 #include <linux/ioport.h> /* For io-port access */ 68 #include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */ 69 70 #include <asm/uaccess.h> /* For copy_to_user/put_user/... */ 71 #include <asm/io.h> /* For inb/outb/... */ ··· 126 #define CMD_ISA_VERSION_HUNDRETH 0x03 127 #define CMD_ISA_VERSION_MINOR 0x04 128 #define CMD_ISA_SWITCH_SETTINGS 0x05 129 + #define CMD_ISA_RESET_PC 0x06 130 + #define CMD_ISA_ARM_0 0x07 131 + #define CMD_ISA_ARM_30 0x08 132 + #define CMD_ISA_ARM_60 0x09 133 #define CMD_ISA_DELAY_TIME_2SECS 0x0A 134 #define CMD_ISA_DELAY_TIME_4SECS 0x0B 135 #define CMD_ISA_DELAY_TIME_8SECS 0x0C 136 + #define CMD_ISA_RESET_RELAYS 0x0D 137 138 /* 139 * We are using an kernel timer to do the pinging of the watchdog ··· 473 if (temp_panic) { 474 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 475 kernel_power_off(); 476 + /* or should we just do a: panic(PFX "Temperature overheat trip!\n"); */ 477 } 478 } 479 } else { ··· 484 if (temp_panic) { 485 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 486 kernel_power_off(); 487 + /* or should we just do a: panic(PFX "Temperature overheat trip!\n"); */ 488 } 489 } 490 } ··· 983 { 984 if (pcwd_private.io_addr) 985 pcwatchdog_exit(); 986 + 987 + printk(KERN_INFO PFX "Watchdog Module Unloaded.\n"); 988 } 989 990 module_init(pcwd_init_module);