linux/arch/um
Jeff Dike 181bde801a uml: fix timer switching
Fix up the switching between virtual and real timers.  The idle loop sleeps,
so the timer at that point must be real time.  At all other times, the timer
must be virtual.  Even when userspace is running, and the kernel is asleep,
the virtual timer is correct because the process timer will be running and the
process timer will be firing.

The timer switch used to be in the context switch and timer handler code.
This is moved to the idle loop and the signal handler, making it much more
clear why it is happening.

switch_timers now returns the old timer type so that it may be restored.  The
signal handler uses this in order to restore the previous timer type when it
returns.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:43:08 -07:00
..
drivers uml: more idiomatic parameter parsing 2007-10-16 09:43:08 -07:00
include uml: fix timer switching 2007-10-16 09:43:08 -07:00
kernel uml: fix timer switching 2007-10-16 09:43:08 -07:00
os-Linux uml: fix timer switching 2007-10-16 09:43:08 -07:00
scripts uml: throw out CONFIG_MODE_TT 2007-10-16 09:43:05 -07:00
sys-i386 uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
sys-ia64
sys-ppc
sys-x86_64 uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
defconfig uml: sysrq and mconsole fixes 2007-10-16 09:43:07 -07:00
Kconfig uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Kconfig.char uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Kconfig.debug uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Kconfig.i386
Kconfig.net uml: add VDE networking support 2007-10-16 09:43:05 -07:00
Kconfig.x86_64
Makefile uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Makefile-i386 uml: throw out CONFIG_MODE_TT 2007-10-16 09:43:05 -07:00
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas
Makefile-tt
Makefile-x86_64 minimal build fixes for uml (fallout from x86 merge) 2007-10-13 09:57:15 -07:00