public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Claudio Scordino <cloud.of.andor@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Steven Rostedt <rostedt@goodmis.org>,
	kernelnewbies@nl.linux.org, Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@elte.hu>
Subject: ktimer not firing ?
Date: Mon, 16 Jan 2006 09:45:46 -0500	[thread overview]
Message-ID: <200601160945.47973.cloud.of.andor@gmail.com> (raw)
In-Reply-To: <1132248488.10522.4.camel@localhost.localdomain>

Hi,

   I know that ktimer is not yet part of the main tree of the Linux
kernel...

I need an high precision timer in a kernel module for 2.6.14, so I chose to 
use ktimers.

My timer must be stopped and reprogrammed very frequently.

This is how I initialize the timer:

struct ktimer mytimer;
ktimer_init(&mytimer);
mytimer.function = myfunction;
mytimer.data = NULL;


This is how I stop the timer:

ktimer_cancel(&mytimer);


This is how I restart the timer:

ktime_t mytime = ktime_set(...,...);
ktimer_start(&mytimer, &mytime, KTIMER_REL)


However, the timer never fires. I checked the return value of the start and 
it's correct (0 = success). Any idea of why the timer does not fire ?

I tried also by directly using ktimer_restart instead of ktimer_cancel + 
ktimer_start, but the timer does not fire either.
The module has also another ktimer which works perfectly...


Many thanks for your help,

                     Claudio


  reply	other threads:[~2006-01-16 14:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-17 15:39 A problem with ktimer Claudio Scordino
2005-11-17 17:28 ` Steven Rostedt
2006-01-16 14:45   ` Claudio Scordino [this message]
2006-01-17  8:04     ` ktimer not firing ? 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=200601160945.47973.cloud.of.andor@gmail.com \
    --to=cloud.of.andor@gmail.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.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