Dear Paolo,
>> The solution to the problem is using con1 instead of con0, I mean:
>>
>> ./linux ubd0=/tmp/root_fs_debug con=null con1=pts uml_dir=/tmp umid=run
>>
>> instead of
>>
>> ./linux ubd0=/tmp/root_fs_debug con=null con1=pts uml_dir=/tmp umid=run
>
> This was con0=pts, I checked your othe
[ The first version of this patch conflicted with the irqstack fix
merged last night - this is the fixed version ]
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
[ The first version of this patch conflicted with the irqstack fix
merged last night - this is the fixed version ]
Now, the idle loop now longer needs SIGALRM firing - it can just sleep
for the requisite amount of time and fake a timer interrupt when it
finishes.
Any use of ITIMER_REAL now goes
Now that ITIMER_REAL is no longer used, there is no need for any use
of SIGALRM whatsoever. This patch removes all mention of it.
In addition, real_alarm_handler took a signal argument which is now
always SIGVTALRM. So, that is gone.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/os-
There are various uses of powers of 1000, plus the odd BILLION
constant in the time code. However, there are perfectly good definitions of
*SEC_PER_*SEC in linux/time.h which can be used instaed.
These are replaced directly in kernel code. Userspace code imports
those constants as UM_*SEC_PER_*S
Enable CONFIG_GENERIC_TIME.
As a side-effect of this, the UML implementations of do_gettimeofday
and do_settimeofday go away, as these are provided by generic code.
set_time also goes away since it was only used by do_settimeofday.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/Kconfig
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 runnin
Now, the idle loop now longer needs SIGALRM firing - it can just sleep
for the requisite amount of time and fake a timer interrupt when it
finishes.
Any use of ITIMER_REAL now goes away. disable_timer only turns off
ITIMER_VIRTUAL. switch_timers is no longer needed, so it, and all
calls, goes aw
Enable tickless support.
CONFIG_TICK_ONESHOT and CONFIG_NO_HZ are enabled.
itimer_clockevent gets CLOCK_EVT_FEAT_ONESHOT and an implementation of
.set_next_event.
CONFIG_UML_REAL_TIME_CLOCK goes away because it only makes sense when
there is a clock ticking away all the time. timer_handler now
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 SIG
Move timer signal initialization from init_irq_signals to a new
function, timer_init.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/include/os.h |1 +
arch/um/kernel/time.c |2 ++
arch/um/os-Linux/irq.c|4
arch/um/os-Linux/signal.c | 10 ++
4 fil
Add clocksource support.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/kernel/time.c | 21 +
1 file changed, 21 insertions(+)
Index: linux-2.6.20/arch/um/kernel/time.c
===
--- linux-2.6.20.orig/arch/
set_interval took a timer type as an argument, but it always specified
a virtual timer. So, it is not needed, and it is gone, and
set_interval is simplified appropriately.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/include/os.h|2 +-
arch/um/kernel/time.c
These patches are the UML tickless support and timekeeping update
rediffed against rc6-mm1.
Jeff
--
Work email - jdike at linux dot intel dot com
-
This SF.net email is sponsored by: Microsof
Eliminate hz() since its only purpose was to provide a kernel-space
constant to userspace code. This can be done instead by providing the
constant directly through kernel_constants.h.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/include/common-offsets.h |2 ++
arch/um/include/ker
15 matches
Mail list logo