Re: [PATCH v13 14/18] x86/tsc: initialize cyc2ns when tsc freq. is determined

2018-07-13 Thread Pavel Tatashin
On Fri, Jul 13, 2018 at 5:13 AM Dou Liyang wrote: > > > > At 07/12/2018 08:04 AM, Pavel Tatashin wrote: > > cyc2ns converts tsc to nanoseconds, and it is handled in a per-cpu data > > structure. > > > > Currently, the setup code for c2ns data for every possible CPU goes through > > the same

Re: [PATCH v13 14/18] x86/tsc: initialize cyc2ns when tsc freq. is determined

2018-07-13 Thread Pavel Tatashin
On Fri, Jul 13, 2018 at 5:13 AM Dou Liyang wrote: > > > > At 07/12/2018 08:04 AM, Pavel Tatashin wrote: > > cyc2ns converts tsc to nanoseconds, and it is handled in a per-cpu data > > structure. > > > > Currently, the setup code for c2ns data for every possible CPU goes through > > the same

Re: [PATCH v13 14/18] x86/tsc: initialize cyc2ns when tsc freq. is determined

2018-07-13 Thread Dou Liyang
At 07/12/2018 08:04 AM, Pavel Tatashin wrote: cyc2ns converts tsc to nanoseconds, and it is handled in a per-cpu data structure. Currently, the setup code for c2ns data for every possible CPU goes through the same sequence of calculations as for the boot CPU, but is based on the same tsc

Re: [PATCH v13 14/18] x86/tsc: initialize cyc2ns when tsc freq. is determined

2018-07-13 Thread Dou Liyang
At 07/12/2018 08:04 AM, Pavel Tatashin wrote: cyc2ns converts tsc to nanoseconds, and it is handled in a per-cpu data structure. Currently, the setup code for c2ns data for every possible CPU goes through the same sequence of calculations as for the boot CPU, but is based on the same tsc