Re: [PATCH] refperf: work around 64-bit division

2020-05-31 Thread Paul E. McKenney
On Sat, May 30, 2020 at 10:01:36AM +0200, Arnd Bergmann wrote: > On Sat, May 30, 2020 at 5:52 AM Nathan Chancellor > wrote: > > On Fri, May 29, 2020 at 10:15:51PM +0200, Arnd Bergmann wrote: > > > strcat(buf, "Threads\tTime(ns)\n"); > > > > > > for (exp = 0; exp < nruns; exp++) { > > >

Re: [PATCH] refperf: work around 64-bit division

2020-05-30 Thread Paul E. McKenney
On Sat, May 30, 2020 at 10:01:36AM +0200, Arnd Bergmann wrote: > On Sat, May 30, 2020 at 5:52 AM Nathan Chancellor > wrote: > > On Fri, May 29, 2020 at 10:15:51PM +0200, Arnd Bergmann wrote: > > > strcat(buf, "Threads\tTime(ns)\n"); > > > > > > for (exp = 0; exp < nruns; exp++) { > > >

Re: [PATCH] refperf: work around 64-bit division

2020-05-30 Thread Arnd Bergmann
On Sat, May 30, 2020 at 5:52 AM Nathan Chancellor wrote: > On Fri, May 29, 2020 at 10:15:51PM +0200, Arnd Bergmann wrote: > > strcat(buf, "Threads\tTime(ns)\n"); > > > > for (exp = 0; exp < nruns; exp++) { > > + u64 avg; > > + u32 rem; > > + > > if

Re: [PATCH] refperf: work around 64-bit division

2020-05-29 Thread Nathan Chancellor
On Fri, May 29, 2020 at 10:15:51PM +0200, Arnd Bergmann wrote: > A 64-bit division was introduced in refperf, breaking compilation > on all 32-bit architectures: > > kernel/rcu/refperf.o: in function `main_func': > refperf.c:(.text+0x57c): undefined reference to `__aeabi_uldivmod' > > Work it by

Re: [PATCH] refperf: work around 64-bit division

2020-05-29 Thread Randy Dunlap
On 5/29/20 1:15 PM, Arnd Bergmann wrote: > A 64-bit division was introduced in refperf, breaking compilation > on all 32-bit architectures: > > kernel/rcu/refperf.o: in function `main_func': > refperf.c:(.text+0x57c): undefined reference to `__aeabi_uldivmod' > > Work it by using div_u64 to mark

Re: [PATCH] refperf: work around 64-bit division

2020-05-29 Thread Paul E. McKenney
On Fri, May 29, 2020 at 10:15:51PM +0200, Arnd Bergmann wrote: > A 64-bit division was introduced in refperf, breaking compilation > on all 32-bit architectures: > > kernel/rcu/refperf.o: in function `main_func': > refperf.c:(.text+0x57c): undefined reference to `__aeabi_uldivmod' > > Work it by

[PATCH] refperf: work around 64-bit division

2020-05-29 Thread Arnd Bergmann
A 64-bit division was introduced in refperf, breaking compilation on all 32-bit architectures: kernel/rcu/refperf.o: in function `main_func': refperf.c:(.text+0x57c): undefined reference to `__aeabi_uldivmod' Work it by using div_u64 to mark the expensive operation. Fixes: bd5b16d6c88d ("refperf