lkml.org 
[lkml]   [2011]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] x86: Reduce clock calibration time during slave cpu startup

* Jack Steiner <steiner@sgi.com> wrote:

> +/*
> + * Check if another cpu is in the same socket and has already been calibrated.
> + * If found, use the previous value. This assumes all cores in the same physical
> + * socket have the same core frequency.
> +
> +unsigned long __cpuinit calibrate_delay_is_known(void)
> +{
> + int i, cpu = smp_processor_id();
> +
> + if (!tsc_disabled && !cpu_has(&cpu_data(cpu), X86_FEATURE_CONSTANT_TSC))
> + return 0;
> +
> + for_each_online_cpu(i)
> + if (cpu_data(i).phys_proc_id == cpu_data(cpu).phys_proc_id)
> + return cpu_data(i).loops_per_jiffy;

Hm, why do we have to make such an assumption? Cannot we query the
core frequency?

Thanks,

Ingo


\
 
 \ /
  Last update: 2011-08-05 12:49    [W:0.082 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site