Re: [RFC/PATCH 4/5] cputime: use do_div() for nsec resolution conversion helpers

2013-02-26 Thread Frederic Weisbecker
2013/2/21 Kevin Hilman : > From a8a0a8b8b12512a7f862ade459cd88d2b48e2bf3 Mon Sep 17 00:00:00 2001 > From: Kevin Hilman > Date: Thu, 14 Feb 2013 11:27:36 -0800 > Subject: [PATCH 4/5] cputime: use do_div() for nsec resolution conversion > helpers > > For the nsec resolution conversions to be useful

Re: [RFC/PATCH 4/5] cputime: use do_div() for nsec resolution conversion helpers

2013-02-21 Thread Kevin Hilman
Namhyung Kim writes: > Hi Kevin, > > On Wed, Feb 20, 2013 at 11:41:41AM -0800, Kevin Hilman wrote: >> For the nsec resolution conversions to be useful on non 64-bit >> architectures, do_div() needs to be used for the 64-bit divisions. >> >> Signed-off-by: Kevin Hilman >> --- >> include/asm-gen

Re: [RFC/PATCH 4/5] cputime: use do_div() for nsec resolution conversion helpers

2013-02-21 Thread Namhyung Kim
Hi Kevin, On Wed, Feb 20, 2013 at 11:41:41AM -0800, Kevin Hilman wrote: > For the nsec resolution conversions to be useful on non 64-bit > architectures, do_div() needs to be used for the 64-bit divisions. > > Signed-off-by: Kevin Hilman > --- > include/asm-generic/cputime_nsecs.h | 51 > +

Re: [RFC/PATCH 4/5] cputime: use do_div() for nsec resolution conversion helpers

2013-02-21 Thread Frederic Weisbecker
2013/2/20 Kevin Hilman : > For the nsec resolution conversions to be useful on non 64-bit > architectures, do_div() needs to be used for the 64-bit divisions. > > Signed-off-by: Kevin Hilman > --- The patch looks good. I'll run and apply it if everything's fine. _

[RFC/PATCH 4/5] cputime: use do_div() for nsec resolution conversion helpers

2013-02-20 Thread Kevin Hilman
For the nsec resolution conversions to be useful on non 64-bit architectures, do_div() needs to be used for the 64-bit divisions. Signed-off-by: Kevin Hilman --- include/asm-generic/cputime_nsecs.h | 51 +++-- 1 file changed, 37 insertions(+), 14 deletions(-) dif