On 06/23/2018 12:56 PM, Thomas Gleixner wrote:
> On Thu, 21 Jun 2018, Pavel Tatashin wrote:
>> /*
>> * Scheduler clock - returns current time in nanosec units.
>> */
>> @@ -1354,6 +1364,7 @@ void __init tsc_early_delay_calibrate(void)
>> lpj = tsc_khz * 1000;
>> do_div(lpj, HZ);
>>
On 06/23/2018 12:56 PM, Thomas Gleixner wrote:
> On Thu, 21 Jun 2018, Pavel Tatashin wrote:
>> /*
>> * Scheduler clock - returns current time in nanosec units.
>> */
>> @@ -1354,6 +1364,7 @@ void __init tsc_early_delay_calibrate(void)
>> lpj = tsc_khz * 1000;
>> do_div(lpj, HZ);
>>
On Thu, 21 Jun 2018, Pavel Tatashin wrote:
> /*
> * Scheduler clock - returns current time in nanosec units.
> */
> @@ -1354,6 +1364,7 @@ void __init tsc_early_delay_calibrate(void)
> lpj = tsc_khz * 1000;
> do_div(lpj, HZ);
> loops_per_jiffy = lpj;
> +
On Thu, 21 Jun 2018, Pavel Tatashin wrote:
> /*
> * Scheduler clock - returns current time in nanosec units.
> */
> @@ -1354,6 +1364,7 @@ void __init tsc_early_delay_calibrate(void)
> lpj = tsc_khz * 1000;
> do_div(lpj, HZ);
> loops_per_jiffy = lpj;
> +
We want to get timestamps and high resultion clock available to us as early
as possible in boot. But, native_sched_clock() outputs time based either on
tsc after tsc_init() is called later in boot, or using jiffies when clock
interrupts are enabled, which is also happens later in boot.
On the
We want to get timestamps and high resultion clock available to us as early
as possible in boot. But, native_sched_clock() outputs time based either on
tsc after tsc_init() is called later in boot, or using jiffies when clock
interrupts are enabled, which is also happens later in boot.
On the
6 matches
Mail list logo