[POWERPC] hvc_console: Polling mode timer backoff
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Tue, 17 Apr 2007 14:44:46 +0000 (00:44 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 24 Apr 2007 11:31:43 +0000 (21:31 +1000)
commitb791072ba3c3b29bab1890963bde52eb944a8451
treef0a506318d8ea653057d6f99387c163b526ebeb3
parentb3a6d2a54b8be331b36d849577a716867895ca75
[POWERPC] hvc_console: Polling mode timer backoff

Add a back-off mechanism to hvc_console's polling logic.   This change
drops the timers/second ratio from ~90 to ~1/2 while the console is
idle.
This change is most noticeable when watching /proc/timer_stats output.

This only affects when the hvc_console is running in poll mode, i.e.
power4 and cell systems.

I've tested on Power4, Michael Ellerman has both contributed to the
patch and tested on cell.

Signed-off-by: Will Schmidt <will_schmidt@vnet.ibm.com>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/char/hvc_console.c