Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178650
b: refs/heads/master
c: ea486e6
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Dec 25, 2009
1 parent e50196b commit 586ae64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a299bf591bc5bef3bde8316e603b9eaec5a7696
refs/heads/master: ea486e681188d64c6a101d8d06414aef0f9f0cd3
11 changes: 2 additions & 9 deletions trunk/drivers/input/serio/serio.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,7 @@ static void serio_handle_event(void)

mutex_lock(&serio_mutex);

/*
* Note that we handle only one event here to give swsusp
* a chance to freeze kseriod thread. Serio events should
* be pretty rare so we are not concerned about taking
* performance hit.
*/
if ((event = serio_get_event())) {
while ((event = serio_get_event())) {

switch (event->type) {
case SERIO_REGISTER_PORT:
Expand Down Expand Up @@ -380,10 +374,9 @@ static struct serio *serio_get_pending_child(struct serio *parent)

static int serio_thread(void *nothing)
{
set_freezable();
do {
serio_handle_event();
wait_event_freezable(serio_wait,
wait_event_interruptible(serio_wait,
kthread_should_stop() || !list_empty(&serio_event_list));
} while (!kthread_should_stop());

Expand Down

0 comments on commit 586ae64

Please sign in to comment.