diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-01-28 10:59:28 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2013-01-28 11:00:28 +0530 |
commit | 82bc6f123a038c881f21d83ebaf41295a55b8a68 (patch) | |
tree | d75a2c9dc5f390a79d3b5b86c8dc91553d21557d | |
parent | 601aab99617be64c3481f9ab9404e7922783ef30 (diff) |
workqueue: Remove wq_migration variable
-rw-r--r-- | workqueue.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/workqueue.c b/workqueue.c index 95a31dd..9b4d4db 100644 --- a/workqueue.c +++ b/workqueue.c @@ -37,7 +37,6 @@ static unsigned int migrate = 1; module_param(migrate, uint, S_IRUGO); MODULE_PARM_DESC(migrate, "wq migration is enabled"); -extern int wq_migration; struct mywork { struct work_struct _work; @@ -83,8 +82,11 @@ void timer_fn(unsigned long data) cpu_mytimer->timer_migration_count++; /* queue work on any cpu */ - queue_work_on_any_cpu(*wq, &_myworks[_mytimer->cpu]._work); ++(*work_queued_count); + if (migrate) + queue_work_on_any_cpu(*wq, &_myworks[_mytimer->cpu]._work); + else + queue_work(*wq, &_myworks[_mytimer->cpu]._work); } extern int not_idle[5], all_idle[5], non_idle_found[5][5]; @@ -193,7 +195,6 @@ static int __init wq_module_init(void) spin_lock_init(&lock); spin_lock_init(&tlock); - wq_migration = migrate; gwq = alloc_workqueue("wq-init", 0, 0); if (!gwq) { pr_err("Failed to allocate workqueue\n"); |