Re: svn commit: r299653 - head/sys/compat/linuxkpi/common/include/linux

2016-05-14 Thread Konstantin Belousov
On Sat, May 14, 2016 at 04:46:09PM +0200, Hans Petter Selasky wrote: > On 05/13/16 20:43, John Baldwin wrote: > > On Friday, May 13, 2016 10:10:44 AM Hans Petter Selasky wrote: > >> @@ -190,6 +258,7 @@ > >> #define smp_processor_id() PCPU_GET(cpuid) > >> #define num_possible_cpus() m

Re: svn commit: r299653 - head/sys/compat/linuxkpi/common/include/linux

2016-05-14 Thread Hans Petter Selasky
On 05/13/16 20:43, John Baldwin wrote: On Friday, May 13, 2016 10:10:44 AM Hans Petter Selasky wrote: @@ -190,6 +258,7 @@ #definesmp_processor_id() PCPU_GET(cpuid) #definenum_possible_cpus() mp_ncpus #definenum_online_cpus() mp_ncpus +#definecpu_

Re: svn commit: r299653 - head/sys/compat/linuxkpi/common/include/linux

2016-05-13 Thread John Baldwin
On Friday, May 13, 2016 10:10:44 AM Hans Petter Selasky wrote: > @@ -190,6 +258,7 @@ > #define smp_processor_id() PCPU_GET(cpuid) > #define num_possible_cpus() mp_ncpus > #define num_online_cpus() mp_ncpus > +#define cpu_has_clflush (1) This is only tr

svn commit: r299653 - head/sys/compat/linuxkpi/common/include/linux

2016-05-13 Thread Hans Petter Selasky
Author: hselasky Date: Fri May 13 10:10:43 2016 New Revision: 299653 URL: https://svnweb.freebsd.org/changeset/base/299653 Log: Add more Linux defines. Improve some existing ones. Obtained from:kmacy @ MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sy