Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755816AbYJFRQf (ORCPT ); Mon, 6 Oct 2008 13:16:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754290AbYJFRQ0 (ORCPT ); Mon, 6 Oct 2008 13:16:26 -0400 Received: from SMTP.ANDREW.CMU.EDU ([128.2.10.159]:35579 "EHLO smtp.andrew.cmu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754022AbYJFRQZ (ORCPT ); Mon, 6 Oct 2008 13:16:25 -0400 Message-ID: <48EA47DF.2090207@cmu.edu> Date: Mon, 06 Oct 2008 13:16:15 -0400 From: George Nychis User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Thomas Gleixner CC: "Randy.Dunlap" , linux-kernel@vger.kernel.org Subject: Re: [patch] Re: how to link to hrtimers in the kernel References: <48EA31A4.6080903@cmu.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 32 Thomas Gleixner wrote: > 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 ? > I am trying to sleep at the microsecond level, which ssleep and msleep cannot provide. I couldn't find any other nanosleep method in the kernel. I found information by searching the net on using jiffies to accomplish sleep periods, but that is not high enough in resolution. I'd greatly appreciate any feedback. Thanks! George -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/