Input: appletouch - improve powersaving for Geyser3 devices
authorSoeren Sonnenburg <kernel@nn7.de>
Fri, 20 Jul 2007 04:29:32 +0000 (00:29 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Fri, 20 Jul 2007 04:29:32 +0000 (00:29 -0400)
commit5a6eb676d3bc4d7a6feab200a92437b62ad298da
treef4199c4161c046c43eb8ec96cd7fc09886dc044a
parente6b20d8d62d87451f41365945b27202d7dadaee6
Input: appletouch - improve powersaving for Geyser3 devices

The appletouch geyser3 devices found in the Intel Macs (and possibly
some later PPC ones?) send a constant stream of packets after the first
touch. This results in the kernel waking up around once every couple of
milliseconds to process them, making it almost impossible to spend any
significant amount of time in C3 state on a dynamic HZ kernel. Sending
the mode initialization code makes the device shut up until it's touched
again. This patch does so after receiving 10 packets with no interesting
content.

Signed-off-by: Soeren Sonnenburg <kernel@nn7.de>
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/appletouch.c