x86/tsc: Consolidate init code
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Mon, 30 Jul 2018 07:54:20 +0000 (15:54 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 30 Jul 2018 17:33:35 +0000 (19:33 +0200)
commit608008a45798fe9e2aee04f99b5270ea57c1376f
tree037533b1a6634abefce5afef445f9f7be99872de
parentbd9f943e5d2a42d864f9692477a25034c9d47dcc
x86/tsc: Consolidate init code

Split out suplicated code from tsc_early_init() and tsc_init() into a
common helper and fixup some comment typos.

[ tglx: Massaged changelog and renamed function ]

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Cc: <hpa@zytor.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lkml.kernel.org/r/20180730075421.22830-2-douly.fnst@cn.fujitsu.com
arch/x86/kernel/tsc.c