Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92785
b: refs/heads/master
c: 13e027a
h: refs/heads/master
i:
  92783: 13dc86b
v: v3
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent ede69b3 commit 1d69b22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 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: 97f26ff6049a7fff5460cebe392ad1d699dc434c
refs/heads/master: 13e027a8bf2a507334fa0d30246ce619ff581cbb
6 changes: 1 addition & 5 deletions trunk/drivers/media/video/pvrusb2/pvrusb2-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ static int pvr2_dvb_feed_func(struct pvr2_dvb_adapter *adap)
stream = adap->channel.stream->stream;

for (;;) {
if (adap->feed_thread_stop) break;
if (kthread_should_stop()) break;

/* Not sure about this... */
Expand Down Expand Up @@ -76,7 +75,7 @@ static int pvr2_dvb_feed_func(struct pvr2_dvb_adapter *adap)
ret = wait_event_interruptible(
adap->buffer_wait_data,
(pvr2_stream_get_ready_count(stream) > 0) ||
adap->feed_thread_stop);
kthread_should_stop());
if (ret < 0) break;
}

Expand Down Expand Up @@ -110,8 +109,6 @@ static void pvr2_dvb_stream_end(struct pvr2_dvb_adapter *adap)
struct pvr2_stream *stream;

if (adap->thread) {
adap->feed_thread_stop = !0;
pvr2_dvb_notify(adap);
kthread_stop(adap->thread);
adap->thread = NULL;
}
Expand Down Expand Up @@ -182,7 +179,6 @@ static int pvr2_dvb_stream_do_start(struct pvr2_dvb_adapter *adap)
if (ret < 0) return ret;
}

adap->feed_thread_stop = 0;
adap->thread = kthread_run(pvr2_dvb_feed_thread, adap, "pvrusb2-dvb");

if (IS_ERR(adap->thread)) {
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/media/video/pvrusb2/pvrusb2-dvb.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ struct pvr2_dvb_adapter {
unsigned int stream_run:1;

wait_queue_head_t buffer_wait_data;
int feed_thread_stop;
char *buffer_storage[PVR2_DVB_BUFFER_COUNT];
};

Expand Down

0 comments on commit 1d69b22

Please sign in to comment.