Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280363
b: refs/heads/master
c: 3a7cbd5
h: refs/heads/master
i:
  280361: 9f1d144
  280359: e2bf1b8
v: v3
  • Loading branch information
Tejun Heo committed Nov 21, 2011
1 parent 11ae37b commit a6828d8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 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: 50fb4f7fc907efff65eadb0b74387a9ffed6e849
refs/heads/master: 3a7cbd50f74907580eb47a8d08e1f29741b81abf
2 changes: 1 addition & 1 deletion trunk/Documentation/power/freezing-of-tasks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ III. Which kernel threads are freezable?

Kernel threads are not freezable by default. However, a kernel thread may clear
PF_NOFREEZE for itself by calling set_freezable() (the resetting of PF_NOFREEZE
directly is strongly discouraged). From this point it is regarded as freezable
directly is not allowed). From this point it is regarded as freezable
and must call try_to_freeze() in a suitable place.

IV. Why do we do that?
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/bluetooth/btmrvl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,6 @@ static int btmrvl_service_main_thread(void *data)

init_waitqueue_entry(&wait, current);

current->flags |= PF_NOFREEZE;

for (;;) {
add_wait_queue(&thread->wait_q, &wait);

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/mfd/twl6030-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ static int twl6030_irq_thread(void *data)
static const unsigned max_i2c_errors = 100;
int ret;

current->flags |= PF_NOFREEZE;

while (!kthread_should_stop()) {
int i;
union {
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/rts_pstor/rtsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,6 @@ static int rtsx_control_thread(void *__dev)
struct rtsx_chip *chip = dev->chip;
struct Scsi_Host *host = rtsx_to_host(dev);

current->flags |= PF_NOFREEZE;

for (;;) {
if (wait_for_completion_interruptible(&dev->cmnd_ready))
break;
Expand Down

0 comments on commit a6828d8

Please sign in to comment.