|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 3/6] x86/time: implement tsc as clocksource
On 03/29/2016 06:39 PM, Konrad Rzeszutek Wilk wrote:
>> static void tsc_check_slave(void *unused)
>> @@ -1437,6 +1515,20 @@ static int __init verify_tsc_reliability(void)
>> }
>> }
>>
>> + if ( !strcmp(opt_clocksource, "tsc") )
>
> Pls also update xen-command-line.markdown
>
OK. I fixed it for the new clocksource, and also added documentation on the new
boot param that is introduced in the last patch.
>> + {
>> + if ( try_platform_timer(&plt_tsc) > 0 )
>> + {
>> + printk(XENLOG_INFO "Switched to Platform timer %s TSC\n",
>> + freq_string(plt_src.frequency));
>> +
>> + init_percpu_time();
>> +
>> + init_timer(&calibration_timer, time_calibration, NULL, 0);
>> + set_timer(&calibration_timer, NOW() + EPOCH);
>> + }
>> + }
>> +
>> return 0;
>> }
>> __initcall(verify_tsc_reliability);
>> @@ -1476,6 +1568,7 @@ void __init early_time_init(void)
>> struct cpu_time *t = &this_cpu(cpu_time);
>> u64 tmp = init_pit_and_calibrate_tsc();
>>
>> + tsc_freq = tmp;
>> set_time_scale(&t->tsc_scale, tmp);
>> t->local_tsc_stamp = boot_tsc_stamp;
>>
>> --
>> 2.1.4
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxx
>> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |