Messages in this thread | | | Date | Fri, 20 Mar 2009 12:41:53 +0100 (CET) | From | Thomas Gleixner <> | Subject | Re: [PATCH 08/57] microblaze_v7: Interrupt handling, timer support, selfmod code |
| |
On Fri, 20 Mar 2009, Michal Simek wrote: > > 2) a clock event device which has CLOCK_EVT_FEAT_PERIODIC flag set. > > You meant ONESHOT feature, right?
Sure :)
> # cat /proc/timer_list > Timer List Version: v0.4 > HRTIMER_MAX_CLOCK_BASES: 2 > now at 17205889582 nsecs > > cpu: 0 > clock 0: > .base: 9027a4d0 > .index: 0 > .resolution: 1 nsecs > .get_time: ktime_get_real > .offset: 0 nsecs > active timers: > clock 1: > .base: 9027a4fc > .index: 1 > .resolution: 1 nsecs > .get_time: ktime_get > .offset: 0 nsecs > active timers: > #0: per_cpu__tick_cpu_sched, tick_sched_timer, S:01, <800005a6>, swapper/1 > # expires at 17210000000-17210000000 nsecs [in 4110418 to 4110418 nsecs] > #1: <9f2d3a48>, hrtimer_wakeup, S:01, <9f2d3a48>, inetd/54 > # expires at 17430563969-17431563926 nsecs [in 224674387 to 225674344 nsecs] > #2: <9e127a48>, hrtimer_wakeup, S:01, <9e127a48>, thttpd/50 > # expires at 129748538823-129848538823 nsecs [in 112542649241 to 112642649241 > nsecs] > .expires_next : 17210000000 nsecs > .hres_active : 1
Looks good. Now you can enable CONFIG_NOHZ as well. :) That needs just the following extras in your idle loop:
--> tick_nohz_stop_sched_tick(1); while (!need_resched()) idle(); --> tick_nohz_restart_sched_tick();
Thanks,
tglx
| |