On 07/10, Rafael J. Wysocki wrote: > > On Tuesday, 10 July 2007 17:00, Oleg Nesterov wrote: > > > --- linux-2.6.22-rc6-mm1.orig/drivers/input/gameport/gameport.c > > > +++ linux-2.6.22-rc6-mm1/drivers/input/gameport/gameport.c > > > @@ -448,9 +448,8 @@ static int gameport_thread(void *nothing > > > set_freezable(); > > > do { > > > gameport_handle_event(); > > > - wait_event_interruptible(gameport_wait, > > > + wait_event_freezable(gameport_wait, > > > kthread_should_stop() || !list_empty(&gameport_event_list)); > > > - try_to_freeze(); > > > } while (!kthread_should_stop()); > > > > Isn't it better to break this patch into 2 separate ones? The first adds > > wait_event_freezable() and "fixes" gameport_thread() and friends in advance, > > the second deals with TIF_SIGPENDING. (please ignore if this is not convenient). > > Not really. I thought about that, but the change in gameport_thread() and > friends is actually necessary _because_ we don't send signals to kernel > threads any more. Yes sure. But this change looks correct even if we do send the signal, so it can go first. It would be nice to have the actual "do not send the signal" change in a separate patch. But again, this is minor, please ignore if you don't like this for whatever reason. Oleg. _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm