From 45a8287d7d7b76915cbdd65021a0988ab49561ec Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Fri, 21 Mar 2003 15:28:11 +0000 Subject: even more portability stuff --- linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/dvb-core') diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index a7aa25c12..61b9f291a 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -436,6 +436,7 @@ int dvb_frontend_thread (void *data) fe->frontend.i2c->adapter->num, fe->frontend.i2c->id); kernel_thread_setup (name); + fe->thread = current; fe->lost_sync_count = -1; @@ -505,7 +506,7 @@ void dvb_frontend_stop (struct dvb_frontend_data *fe) while (fe->thread) { fe->exit = 1; wake_up_interruptible (&fe->wait_queue); - current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule_timeout (5); if (signal_pending(current)) break; -- cgit v1.2.3