• Pavel Tatashin's avatar
    x86/tsc: Make use of tsc_calibrate_cpu_early() · 8dbe4385
    Pavel Tatashin authored
    During early boot enable tsc_calibrate_cpu_early() and switch to
    tsc_calibrate_cpu() only later. Do this unconditionally, because it is
    unknown what methods other cpus will use to calibrate once they are
    onlined.
    
    If by the time tsc_init() is called tsc frequency is still unknown do only
    pit_hpet_ptimer_calibrate_cpu() to calibrate, as this function contains the
    only methods wich have not been called and tried earlier.
    Signed-off-by: default avatarPavel Tatashin <pasha.tatashin@oracle.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: steven.sistare@oracle.com
    Cc: daniel.m.jordan@oracle.com
    Cc: linux@armlinux.org.uk
    Cc: schwidefsky@de.ibm.com
    Cc: heiko.carstens@de.ibm.com
    Cc: john.stultz@linaro.org
    Cc: sboyd@codeaurora.org
    Cc: hpa@zytor.com
    Cc: douly.fnst@cn.fujitsu.com
    Cc: peterz@infradead.org
    Cc: prarit@redhat.com
    Cc: feng.tang@intel.com
    Cc: pmladek@suse.com
    Cc: gnomes@lxorguk.ukuu.org.uk
    Cc: linux-s390@vger.kernel.org
    Cc: boris.ostrovsky@oracle.com
    Cc: jgross@suse.com
    Cc: pbonzini@redhat.com
    Link: https://lkml.kernel.org/r/20180719205545.16512-27-pasha.tatashin@oracle.com
    8dbe4385
x86_init.c 3.97 KB