tmp_suning_uos_patched/kernel/power
Tejun Heo a0a1a5fd4f workqueue: reimplement workqueue freeze using max_active
Currently, workqueue freezing is implemented by marking the worker
freezeable and calling try_to_freeze() from dispatch loop.
Reimplement it using cwq->limit so that the workqueue is frozen
instead of the worker.

* workqueue_struct->saved_max_active is added which stores the
  specified max_active on initialization.

* On freeze, all cwq->max_active's are quenched to zero.  Freezing is
  complete when nr_active on all cwqs reach zero.

* On thaw, all cwq->max_active's are restored to wq->saved_max_active
  and the worklist is repopulated.

This new implementation allows having single shared pool of workers
per cpu.

Signed-off-by: Tejun Heo <tj@kernel.org>
2010-06-29 10:07:12 +02:00
..
block_io.c PM / Hibernate: Fix block_io.c printk warning 2010-05-10 23:08:18 +02:00
console.c
hibernate_nvs.c
hibernate.c
Kconfig
main.c
Makefile PM / Hibernate: Separate block_io 2010-05-10 23:08:18 +02:00
power.h PM / Hibernate: Separate block_io 2010-05-10 23:08:18 +02:00
poweroff.c
process.c workqueue: reimplement workqueue freeze using max_active 2010-06-29 10:07:12 +02:00
snapshot.c
suspend_test.c
suspend.c
swap.c PM / Hibernate: Group swap ops 2010-05-10 23:08:18 +02:00
user.c