diff options
author | Naga Radhesh <naga.radheshy@stericsson.com> | 2011-10-11 13:51:01 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:03:36 +0200 |
commit | d546fc326ee3e73b36ebdd58157fdfaa83e248aa (patch) | |
tree | d2abcbdf34d0cabe0e0c5ecbf5e0c39d912a734d /drivers/input | |
parent | 10706ec965ba358539c26cb5988788eacd8ab160 (diff) |
input: Increase schedule Scan work delay
Increase Scan work delay,to reduce CPU load
ST-Ericsson ID: 365018
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: NA
Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
Change-Id: Ibf21ffd807d7603ad4ac68558cff723b801d8c80
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33604
Reviewed-by: QABUILD
Reviewed-by: Naveen Kumar GADDIPATI <naveen.gaddipati@stericsson.com>
Reviewed-by: Karl-Johan PERNTZ <karl-johan.perntz@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/nomadik-ske-keypad.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/input/keyboard/nomadik-ske-keypad.c b/drivers/input/keyboard/nomadik-ske-keypad.c index e791b16c6b1..9a3e7dfb605 100644 --- a/drivers/input/keyboard/nomadik-ske-keypad.c +++ b/drivers/input/keyboard/nomadik-ske-keypad.c @@ -367,9 +367,13 @@ static void ske_keypad_scan_work(struct work_struct *work) } if (keypad->key_pressed) { - /* Key still pressed, schedule work to poll changes in 50 ms */ + /* + * Key still pressed, schedule work to poll changes in 100 ms + * After increasing the delay from 50 to 100 it is taking + * 2% to 3% load on average. + */ schedule_delayed_work(&keypad->scan_work, - msecs_to_jiffies(50)); + msecs_to_jiffies(100)); } else { /* For safty measure, clear interrupt once more */ ske_keypad_set_bits(keypad, SKE_ICR, 0x0, SKE_KPICA); |