[PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-03-25 Thread Yury Norov
test_bitmap_parselist uses get_cycles(). Only arm, arm64, openrisc, riscv and sparc64 implement get_cycles() and others take a stub from include/asm-generic/timex.h. So, switch to more generic ktime_get(). Fixes: 6df0d464dbcc1a55 (lib/test_bitmap.c: add test for bitmap_parselist())

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-21 Thread Yury Norov
On Wed, Feb 20, 2019 at 05:20:48PM +0300, Yury Norov wrote: > On Wed, Feb 20, 2019 at 03:52:36PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > > > On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > > > > test_bitmap_parselist

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-21 Thread Yury Norov
On Wed, Feb 20, 2019 at 03:10:44PM -0800, Palmer Dabbelt wrote: > On Wed, 20 Feb 2019 06:20:48 PST (-0800), yury.no...@gmail.com wrote: > > On Wed, Feb 20, 2019 at 03:52:36PM +0200, Andy Shevchenko wrote: > > > On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > > > > On Wed, Feb

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Palmer Dabbelt
On Wed, 20 Feb 2019 06:20:48 PST (-0800), yury.no...@gmail.com wrote: On Wed, Feb 20, 2019 at 03:52:36PM +0200, Andy Shevchenko wrote: On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > > test_bitmap_parselist

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Yury Norov
On Wed, Feb 20, 2019 at 03:52:36PM +0200, Andy Shevchenko wrote: > On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > > > test_bitmap_parselist currently uses get_cycles which is not > > > implemented on some

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Andy Shevchenko
On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > > test_bitmap_parselist currently uses get_cycles which is not > > implemented on some platforms, so use ktime_get() instead. > > This sounds like a fix that should go

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Andy Shevchenko
On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > test_bitmap_parselist currently uses get_cycles which is not > implemented on some platforms, so use ktime_get() instead. This sounds like a fix that should go first in the series. -- With Best Regards, Andy Shevchenko

[PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Yury Norov
test_bitmap_parselist currently uses get_cycles which is not implemented on some platforms, so use ktime_get() instead. Signed-off-by: Yury Norov --- lib/test_bitmap.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index