From: James S. <jsi...@us...> - 2002-06-18 18:51:59
|
Update of /cvsroot/linuxconsole/ruby/linux/drivers/char In directory usw-pr-cvs1:/tmp/cvs-serv13236/linux/drivers/char Modified Files: Config.in Makefile sysrq.c Log Message: Synced to 2.5.22 Index: Config.in =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/char/Config.in,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- Config.in 4 Jun 2002 19:45:08 -0000 1.40 +++ Config.in 18 Jun 2002 18:51:55 -0000 1.41 @@ -47,7 +47,7 @@ if [ "$CONFIG_DIGIEPCA" = "n" ]; then tristate ' Digiboard PC/Xx Support' CONFIG_DIGI fi - tristate ' Hayes ESP serial port support' CONFIG_ESPSERIAL + dep_tristate ' Hayes ESP serial port support' CONFIG_ESPSERIAL $CONFIG_ISA tristate ' Moxa Intellio support' CONFIG_MOXA_INTELLIO tristate ' Moxa SmartIO support' CONFIG_MOXA_SMARTIO if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then Index: Makefile =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/char/Makefile,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- Makefile 15 Jun 2002 19:17:09 -0000 1.43 +++ Makefile 18 Jun 2002 18:51:55 -0000 1.44 @@ -17,8 +17,6 @@ sonypi.o tty_io.o tty_ioctl.o generic_serial.o rtc.o \ ip2main.o -mod-subdirs := ftape drm pcmcia - ifeq ($(CONFIG_DECSTATION),y) SERIAL = decserial.o endif Index: sysrq.c =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/char/sysrq.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- sysrq.c 25 May 2002 20:32:02 -0000 1.21 +++ sysrq.c 18 Jun 2002 18:51:55 -0000 1.22 @@ -111,11 +111,9 @@ /* do_emergency_sync helper function */ /* Guesses if the device is a local hard drive */ -static int is_local_disk(kdev_t dev) { - unsigned int major; - major = major(dev); - - switch (major) { +static int is_local_disk(struct block_device *bdev) +{ + switch (MAJOR(bdev->bd_dev)) { case IDE0_MAJOR: case IDE1_MAJOR: case IDE2_MAJOR: @@ -149,7 +147,7 @@ console_loglevel = 7; printk(KERN_INFO "%sing device %s ... ", remount_flag ? "Remount" : "Sync", - kdevname(sb->s_dev)); + sb->s_id); if (remount_flag) { /* Remount R/O */ int ret, flags; @@ -208,13 +206,13 @@ for (sb = sb_entry(super_blocks.next); sb != sb_entry(&super_blocks); sb = sb_entry(sb->s_list.next)) - if (is_local_disk(sb->s_dev)) + if (sb->s_bdev && is_local_disk(sb->s_bdev)) go_sync(sb, remount_flag); for (sb = sb_entry(super_blocks.next); sb != sb_entry(&super_blocks); sb = sb_entry(sb->s_list.next)) - if (!is_local_disk(sb->s_dev) && major(sb->s_dev)) + if (sb->s_bdev && !is_local_disk(sb->s_bdev)) go_sync(sb, remount_flag); unlock_kernel(); @@ -331,22 +329,6 @@ action_msg: "Kill All Tasks", }; -#ifdef CONFIG_SOFTWARE_SUSPEND -static void sysrq_handle_swsusp(int key, struct pt_regs *pt_regs, - struct kbd_struct *kbd, struct tty_struct *tty) { - if(!software_suspend_enabled) { - printk("Software Suspend is not possible now\n"); - return; - } - software_suspend(); -} -static struct sysrq_key_op sysrq_swsusp_op = { - handler: sysrq_handle_swsusp, - help_msg: "suspenD", - action_msg: "Software suspend\n", -}; -#endif - /* END SIGNAL SYSRQ HANDLERS BLOCK */ @@ -369,11 +351,7 @@ and will never arive */ /* b */ &sysrq_reboot_op, /* c */ NULL, -#ifdef CONFIG_SOFTWARE_SUSPEND -/* d */ &sysrq_swsusp_op, -#else /* d */ NULL, -#endif /* e */ &sysrq_term_op, /* f */ NULL, /* g */ NULL, @@ -399,7 +377,7 @@ /* v */ NULL, /* w */ NULL, /* x */ NULL, -/* w */ NULL, +/* y */ NULL, /* z */ NULL }; |