From: "Francis Moreau" <francis.moro@gmail.com>
To: tglx@linutronix.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: clockevent questions
Date: Tue, 15 May 2007 10:47:52 +0200 [thread overview]
Message-ID: <38b2ab8a0705150147s4ce72914qfa30d543ed8a4839@mail.gmail.com> (raw)
In-Reply-To: <1179001391.22481.216.camel@localhost.localdomain>
Thomas,
On 5/12/07, Thomas Gleixner <tglx@linutronix.de> wrote:
> Well, it ends up in hrtimer_interrupt() and the code there finds out,
> that the next timer is not due right now, so it simply requests the same
> (absolute) time event again, which is processed by the clock events code
> and eventually limited to the max delta of the device again.
>
My timer is finally using the clockevent subsystem. Below is the
output of '/proc/timer_list':
cat /proc/timer_list
Timer List Version: v0.3
HRTIMER_MAX_CLOCK_BASES: 2
now at 64696544360531 nsecs
cpu: 0
clock 0:
.index: 0
.resolution: 1 nsecs
.get_time: ktime_get_real
.offset: 1179151153000000000 nsecs
active timers:
clock 1:
.index: 1
.resolution: 1 nsecs
.get_time: ktime_get
.offset: 0 nsecs
active timers:
#0: <c03fde10>, tick_sched_timer, S:01
# expires at 64696546875000 nsecs [in 2514469 nsecs]
.expires_next : 64696546875000 nsecs
.hres_active : 1
.nr_events : 16562163
.nohz_mode : 0
.idle_tick : 0 nsecs
.tick_stopped : 0
.idle_jiffies : 0
.idle_calls : 0
.idle_sleeps : 0
.idle_entrytime : 0 nsecs
.idle_sleeptime : 0 nsecs
.last_jiffies : 0
.next_jiffies : 0
.idle_expires : 0 nsecs
jiffies: 16485515
Tick Device: mode: 1
Clock Event Device: hrt
max_delta_ns: 2147483647
min_delta_ns: 1000
mult: 206158430
shift: 32
mode: 3
next_event: 64696546875000 nsecs
set_next_event: hrt_next_event
set_mode: hrt_timer_setup
event_handler: hrtimer_interrupt
My question is about the clock resolution field which is equal to 1ns.
How is this possible since my timer's frequency is only 100Mhz ?
My 2 cents, it looks like some tabs are missing when printing the list
of hrtimers of each clock...
Thanks
--
Francis
next prev parent reply other threads:[~2007-05-15 8:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-12 14:54 clockevent questions Francis Moreau
2007-05-12 15:14 ` Thomas Gleixner
2007-05-12 20:13 ` Francis Moreau
2007-05-12 20:23 ` Thomas Gleixner
2007-05-13 5:52 ` Francis Moreau
2007-05-15 8:47 ` Francis Moreau [this message]
2007-05-15 22:10 ` Thomas Gleixner
2007-05-16 7:42 ` Francis Moreau
2007-05-16 8:00 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38b2ab8a0705150147s4ce72914qfa30d543ed8a4839@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox