aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.1/0212-rpi-ft5406-Use-interruptible-sleep-to-avoid-high-loa.patch
blob: 531fb7be4d24baa67248e3681e8669e710c955bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From a668e38a52a964834054ee19e6e11e28f71f4172 Mon Sep 17 00:00:00 2001
From: popcornmix <popcornmix@gmail.com>
Date: Fri, 6 Nov 2015 16:24:59 +0000
Subject: [PATCH 212/222] rpi-ft5406: Use interruptible sleep to avoid high
 load reported

---
 drivers/input/touchscreen/rpi-ft5406.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/input/touchscreen/rpi-ft5406.c
+++ b/drivers/input/touchscreen/rpi-ft5406.c
@@ -65,7 +65,7 @@ static int ft5406_thread(void *arg)
 	while(!kthread_should_stop())
 	{
 		// 60fps polling
-		msleep(17);
+		msleep_interruptible(17);
 		memcpy_fromio(&regs, ts->regs, sizeof(*ts->regs));
 		writel(99, &ts->regs->num_points);
 		// Do not output if theres no new information (num_points is 99)