Re: [PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-20 Thread Thomas Gleixner
On Tue, 13 Jun 2017, Zhenzhong Duan wrote: > 在 2017/6/13 0:03, Thomas Gleixner 写道: > > On Thu, 8 Jun 2017, Zhenzhong Duan wrote: > > > > > unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set > > > by > > > check_system_tsc_reliable(). It's better to move > > >

Re: [PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-20 Thread Thomas Gleixner
On Tue, 13 Jun 2017, Zhenzhong Duan wrote: > 在 2017/6/13 0:03, Thomas Gleixner 写道: > > On Thu, 8 Jun 2017, Zhenzhong Duan wrote: > > > > > unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set > > > by > > > check_system_tsc_reliable(). It's better to move > > >

Re: [PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-12 Thread Zhenzhong Duan
在 2017/6/13 0:03, Thomas Gleixner 写道: On Thu, 8 Jun 2017, Zhenzhong Duan wrote: unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set by check_system_tsc_reliable(). It's better to move check_system_tsc_reliable() at front, or else this check makes no sense. Though

Re: [PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-12 Thread Zhenzhong Duan
在 2017/6/13 0:03, Thomas Gleixner 写道: On Thu, 8 Jun 2017, Zhenzhong Duan wrote: unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set by check_system_tsc_reliable(). It's better to move check_system_tsc_reliable() at front, or else this check makes no sense. Though

Re: [PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-12 Thread Thomas Gleixner
On Thu, 8 Jun 2017, Zhenzhong Duan wrote: > unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set by > check_system_tsc_reliable(). It's better to move check_system_tsc_reliable() > at > front, or else this check makes no sense. > > Though X86_FEATURE_CONSTANT_TSC is usually

Re: [PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-12 Thread Thomas Gleixner
On Thu, 8 Jun 2017, Zhenzhong Duan wrote: > unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set by > check_system_tsc_reliable(). It's better to move check_system_tsc_reliable() > at > front, or else this check makes no sense. > > Though X86_FEATURE_CONSTANT_TSC is usually

[PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-08 Thread Zhenzhong Duan
unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set by check_system_tsc_reliable(). It's better to move check_system_tsc_reliable() at front, or else this check makes no sense. Though X86_FEATURE_CONSTANT_TSC is usually set for TSC reliable system, just in case.

[PATCH] Calling check_system_tsc_reliable before unsynchronized_tsc

2017-06-08 Thread Zhenzhong Duan
unsynchronized_tsc() checks value of tsc_clocksource_reliable which is set by check_system_tsc_reliable(). It's better to move check_system_tsc_reliable() at front, or else this check makes no sense. Though X86_FEATURE_CONSTANT_TSC is usually set for TSC reliable system, just in case.