summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJonathan Wicks <jwicks@codeaurora.org>2016-08-23 10:04:14 -0600
committerJonathan Wicks <jwicks@codeaurora.org>2016-08-23 10:04:14 -0600
commit3c065f4cd7aae83ac322dc7783b241d8f262c6c4 (patch)
tree505185944d5fd652a50a8ffde903e0ee30bb56d3 /drivers/gpu
parentc605e110ab18604981481a7b502da54640b620bc (diff)
msm: kgsl: Add WQ_SYSFS to the worker threads
Add WQ_SYSFS to the worker threads so that they show up under /sys/bus/workqueue/devices. This allows some of the properties to be adjusted at runtime. Change-Id: I3424ae51461e04e0771560ff1c5b35cdf5b1fd6c Signed-off-by: Jonathan Wicks <jwicks@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/msm/kgsl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/msm/kgsl.c b/drivers/gpu/msm/kgsl.c
index 24005a1fda72..4b487a2a5396 100644
--- a/drivers/gpu/msm/kgsl.c
+++ b/drivers/gpu/msm/kgsl.c
@@ -4520,7 +4520,7 @@ int kgsl_device_platform_probe(struct kgsl_device *device)
}
device->events_wq = alloc_workqueue("kgsl-events",
- WQ_UNBOUND | WQ_MEM_RECLAIM, 0);
+ WQ_UNBOUND | WQ_MEM_RECLAIM | WQ_SYSFS, 0);
/* Initalize the snapshot engine */
kgsl_device_snapshot_init(device);
@@ -4663,7 +4663,8 @@ static int __init kgsl_core_init(void)
INIT_LIST_HEAD(&kgsl_driver.pagetable_list);
- kgsl_driver.workqueue = create_singlethread_workqueue("kgsl-workqueue");
+ kgsl_driver.workqueue = alloc_workqueue("kgsl-workqueue",
+ WQ_UNBOUND | WQ_MEM_RECLAIM | WQ_SYSFS, 0);
kgsl_driver.mem_workqueue = alloc_workqueue("kgsl-mementry",
WQ_UNBOUND | WQ_MEM_RECLAIM, 0);