Messages in this thread | | | Date | Tue, 8 Apr 2014 11:27:22 -0400 | From | Steven Rostedt <> | Subject | Re: [RFC PATCH] time: Fix truncation in jiffies_to_usecs() |
| |
On Mon, 7 Apr 2014 22:34:51 -0700 Tony Luck <tony.luck@gmail.com> wrote:
> On Mon, Apr 7, 2014 at 3:25 PM, Tony Luck <tony.luck@intel.com> wrote: > > > c) If not this ... then what? Separate routine to convert large numbers > > of jiffies to usec/nsecs? Should we make the existing one barf when > > handed a number that overflows? > > Having thought about this a bit more - I'm leaning towards leaving > jiffies_to_usecs() alone, but using it as a model for a from-scratch > implementation of: > u64 jiffies_to_nsecs(const unsigned long j) > { > } > > This is what the uptime tracer actually needs - and there is only > one user of jiffies_to_nsecs() to worry about.
Sounds good to me.
-- Steve
| |