public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: George Nychis <gnychis@cmu.edu>, linux-kernel@vger.kernel.org
Subject: Re: [patch] Re: how to link to hrtimers in the kernel
Date: Mon, 6 Oct 2008 18:51:50 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0810061849090.3166@apollo> (raw)
In-Reply-To: <Pine.LNX.4.64.0810060931140.4121@shark.he.net>

On Mon, 6 Oct 2008, Randy.Dunlap wrote:
> On Mon, 6 Oct 2008, George Nychis wrote:
> 
> > Hi all,
> > 
> > I have modified drivers/usb/core/devio.c to use hrtimer_nanosleep(), and have
> > included linux/hrtimer.h with it.

Please do not use hrtimer_nanosleep() in drivers. That's
wrong.

What do you want to achieve ?
 
> Export hrtimer_nanosleep() for module use.

NAK, hrtimer_nanosleep is part of the user space interfaces.

> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
>  kernel/hrtimer.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- linux-2.6.27-rc8-git5.orig/kernel/hrtimer.c
> +++ linux-2.6.27-rc8-git5/kernel/hrtimer.c
> @@ -1559,6 +1559,7 @@ out:
>  	destroy_hrtimer_on_stack(&t.timer);
>  	return ret;
>  }
> +EXPORT_SYMBOL_GPL(hrtimer_nanosleep);
>  
>  asmlinkage long
>  sys_nanosleep(struct timespec __user *rqtp, struct timespec __user *rmtp)
> 

  reply	other threads:[~2008-10-06 16:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-06 15:41 how to link to hrtimers in the kernel George Nychis
2008-10-06 16:33 ` [patch] " Randy.Dunlap
2008-10-06 16:51   ` Thomas Gleixner [this message]
2008-10-06 17:16     ` George Nychis
2008-10-07 14:55       ` Brian Pomerantz

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=alpine.LFD.2.00.0810061849090.3166@apollo \
    --to=tglx@linutronix.de \
    --cc=gnychis@cmu.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    /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