Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abd75c8c authored by Jonathan Wicks's avatar Jonathan Wicks
Browse files

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: default avatarJonathan Wicks <jwicks@codeaurora.org>
parent cb81bf6e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3952,7 +3952,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);
@@ -4095,7 +4095,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);