Skip to content

Commit

Permalink
touchscreen: use freezable, high priority & unbound workqueues (whyre…
Browse files Browse the repository at this point in the history
…d/wayne/tulip)

Signed-off-by: psndna88 <[email protected]>
  • Loading branch information
psndna88 authored and 1petro committed Sep 24, 2020
1 parent 2b5faba commit 7450855
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/nvt_touch_a/nt36xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ static int32_t nvt_ts_probe(struct i2c_client *client, const struct i2c_device_i
mutex_unlock(&ts->lock);


nvt_wq = create_workqueue("nvt_wq");
nvt_wq = alloc_workqueue("nvt_wq", WQ_FREEZABLE | WQ_HIGHPRI | WQ_UNBOUND, 0);
if (!nvt_wq) {
NVT_ERR("nvt_wq create workqueue failed\n");
ret = -ENOMEM;
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/nvt_touch_a/nt36xxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "../lct_tp_fm_info.h"
#include "../lct_ctp_upgrade.h"
#endif
#define NVT_DEBUG 1
#define NVT_DEBUG 0


#define NVTTOUCH_RST_PIN 66
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/nvt_touch_d2s/nt36xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ static int32_t nvt_ts_probe(struct i2c_client *client, const struct i2c_device_i
mutex_unlock(&ts->lock);


nvt_wq = create_workqueue("nvt_wq");
nvt_wq = alloc_workqueue("nvt_wq", WQ_FREEZABLE | WQ_HIGHPRI | WQ_UNBOUND, 0);
if (!nvt_wq) {
NVT_ERR("nvt_wq create workqueue failed\n");
ret = -ENOMEM;
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/nvt_touch_d2s/nt36xxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <linux/earlysuspend.h>
#endif

#define NVT_DEBUG 1
#define NVT_DEBUG 0


#define NVTTOUCH_INT_PIN 943
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/nvt_touch_e7s/nt36xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ static int32_t nvt_ts_probe(struct i2c_client *client, const struct i2c_device_i
mutex_unlock(&ts->lock);


nvt_wq = create_workqueue("nvt_wq");
nvt_wq = alloc_workqueue("nvt_wq", WQ_FREEZABLE | WQ_HIGHPRI | WQ_UNBOUND, 0);
if (!nvt_wq) {
NVT_ERR("nvt_wq create workqueue failed\n");
ret = -ENOMEM;
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/nvt_touch_e7s/nt36xxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#if NVT_DEBUG
#define NVT_LOG(fmt, args...) pr_err("[%s] %s %d: " fmt, NVT_I2C_NAME, __func__, __LINE__, ##args)
#else
#define NVT_LOG(fmt, args...) pr_info("[%s] %s %d: " fmt, NVT_I2C_NAME, __func__, __LINE__, ##args)
#define NVT_LOG(fmt, args...) pr_debug("[%s] %s %d: " fmt, NVT_I2C_NAME, __func__, __LINE__, ##args)
#endif
#define NVT_ERR(fmt, args...) pr_err("[%s] %s %d: " fmt, NVT_I2C_NAME, __func__, __LINE__, ##args)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4430,7 +4430,7 @@ static int synaptics_rmi4_probe(struct platform_device *pdev)
create_singlethread_workqueue("dsx_rebuild_workqueue");
INIT_DELAYED_WORK(&rmi4_data->rb_work, synaptics_rmi4_rebuild_work);

exp_data.workqueue = create_singlethread_workqueue("dsx_exp_workqueue");
exp_data.workqueue = alloc_workqueue("dsx_exp_workqueue", WQ_FREEZABLE | WQ_HIGHPRI | WQ_UNBOUND, 0);
INIT_DELAYED_WORK(&exp_data.work, synaptics_rmi4_exp_fn_work);
exp_data.rmi4_data = rmi4_data;
exp_data.queue_work = true;
Expand Down

0 comments on commit 7450855

Please sign in to comment.