Re: [PATCH -v2] x86: Kill notsc

2015-11-04 Thread Borislav Petkov
On Wed, Nov 04, 2015 at 11:21:45AM +0100, Thomas Gleixner wrote: > On Thu, 22 Oct 2015, Borislav Petkov wrote: > > u64 native_sched_clock(void) > > { > > - if (static_branch_likely(&__use_tsc)) { > > - u64 tsc_now = rdtsc(); > > - > > - /* return the value in ns */ > > -

Re: [PATCH -v2] x86: Kill notsc

2015-11-04 Thread Thomas Gleixner
On Thu, 22 Oct 2015, Borislav Petkov wrote: > u64 native_sched_clock(void) > { > - if (static_branch_likely(&__use_tsc)) { > - u64 tsc_now = rdtsc(); > - > - /* return the value in ns */ > - return cycles_2_ns(tsc_now); > - } > - > +#ifdef

Re: [PATCH -v2] x86: Kill notsc

2015-11-04 Thread Borislav Petkov
On Wed, Nov 04, 2015 at 11:21:45AM +0100, Thomas Gleixner wrote: > On Thu, 22 Oct 2015, Borislav Petkov wrote: > > u64 native_sched_clock(void) > > { > > - if (static_branch_likely(&__use_tsc)) { > > - u64 tsc_now = rdtsc(); > > - > > - /* return the value in ns */ > > -

Re: [PATCH -v2] x86: Kill notsc

2015-11-04 Thread Thomas Gleixner
On Thu, 22 Oct 2015, Borislav Petkov wrote: > u64 native_sched_clock(void) > { > - if (static_branch_likely(&__use_tsc)) { > - u64 tsc_now = rdtsc(); > - > - /* return the value in ns */ > - return cycles_2_ns(tsc_now); > - } > - > +#ifdef

[PATCH -v2] x86: Kill notsc

2015-10-22 Thread Borislav Petkov
:05:32 +0200 Subject: [PATCH -v2] x86: Kill notsc Kill "notsc" cmdline option and all the glue around it. The two boxes worldwide which don't have a TSC should disable X86_TSC. Thus, make native_sched_clock() use TSC unconditionally, even if the TSC is unstable because that's fine ther

[PATCH -v2] x86: Kill notsc

2015-10-22 Thread Borislav Petkov
Sun, 18 Oct 2015 16:05:32 +0200 Subject: [PATCH -v2] x86: Kill notsc Kill "notsc" cmdline option and all the glue around it. The two boxes worldwide which don't have a TSC should disable X86_TSC. Thus, make native_sched_clock() use TSC unconditionally, even if the TSC is unstab