]> git.hungrycats.org Git - linux/commitdiff
Move sleep_on() above refrigerator so that the kseriod thread
authorPavel Machek <pavel@suse.cz>
Tue, 30 Jul 2002 23:52:03 +0000 (01:52 +0200)
committerVojtech Pavlik <vojtech@suse.cz>
Tue, 30 Jul 2002 23:52:03 +0000 (01:52 +0200)
in serio.c doesn't exit on suspend because of a pending signal.

drivers/input/serio/serio.c

index b6e6c0f7138495bdeecdec9f7b14e332edc3caa4..b45bd1a1a3f413d7167e30d46c54d0858881b0b0 100644 (file)
@@ -95,9 +95,9 @@ static int serio_thread(void *nothing)
 
        do {
                serio_handle_events();
+               interruptible_sleep_on(&serio_wait); 
                if (current->flags & PF_FREEZE)
                        refrigerator(PF_IOTHREAD);
-               interruptible_sleep_on(&serio_wait); 
        } while (!signal_pending(current));
 
        printk(KERN_DEBUG "serio: kseriod exiting");