UML - GENERIC_CLOCKEVENTS support
PATCH 6/11 UML - GENERIC_CLOCKEVENTS support
Enable CONFIG_GENERIC_CLOCKEVENTS.
timer_irq gets its name changed to timer_handler, and becomes the recipient of timer signals.
The clock_event_device is set up to imitate the current ticking clock, i.e. CLOCK_EVT_FEAT_ONESHOT is not enabled yet.
disable_timer now doesn't ignore SIGALRM and SIGVTALRM because that breaks delay calibration.
--
arch/um/Kconfig | 4 + arch/um/defconfig | 3 + arch/um/kernel/time.c | 99 ++++++++++++++++++++++-------------------------- arch/um/os-Linux/time.c | 4 - 4 files changed, 54 insertions(+), 56 deletions(-)
arch/um/Kconfig +4 -0
@@ -59,6 +59,10 @@ config GENERIC_TIME bool default y +config GENERIC_CLOCKEVENTS + bool + default y + # Used in kernel/irq/manage.c and include/linux/irq.h config IRQ_RELEASE_METHOD bool
arch/um/kernel/time.c +47 -52
151 lines not on this page · raw message
arch/um/defconfig +3 -0
@@ -73,6 +73,9 @@ CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y # CONFIG_SPARSEMEM_STATIC is not set CONFIG_SPLIT_PTLOCK_CPUS=4 +# CONFIG_TICK_ONESHOT is not set +# CONFIG_NO_HZ is not set +CONFIG_HIGH_RES_TIMERS=y CONFIG_LD_SCRIPT_DYN=y CONFIG_NET=y CONFIG_BINFMT_ELF=y
arch/um/os-Linux/time.c +0 -4
@@ -34,10 +34,6 @@ void disable_timer(void) (setitimer(ITIMER_REAL, &disable, NULL) < 0))printk (UM_KERN_ERR "disable_timer - setitimer failed, " "errno = %d\n" , errno); - -/* If there are signals already queued, after unblocking ignore them */ -signal (SIGALRM ,SIG_IGN ); -signal (SIGVTALRM ,SIG_IGN ); }int switch_timers (int to_real)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel