Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1606984

[v1 9/9] x86/tsc: use tsc early

From Pavel Tatashin <pasha.tatashin@oracle.com>
Newsgroups linux.kernel
Subject [v1 9/9] x86/tsc: use tsc early
Date 2017-03-22 21:30 +0100
Message-ID <tnV3j-89A-3@gated-at.bofh.it> (permalink)
References <tnUTE-85w-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Call tsc_early_init() to initialize early boot time stamps functionality on
the supported x86 platforms, and call tsc_early_fini() to finish this
feature after permanent tsc has been initialized.

Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
---
 arch/x86/kernel/head64.c |    1 +
 arch/x86/kernel/time.c   |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index b5785c1..1068a56 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -157,6 +157,7 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data)
 	clear_bss();
 
 	clear_page(init_level4_pgt);
+	tsc_early_init();
 
 	kasan_early_init();
 
diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
index d39c091..2d691eb 100644
--- a/arch/x86/kernel/time.c
+++ b/arch/x86/kernel/time.c
@@ -85,6 +85,7 @@ static __init void x86_late_time_init(void)
 {
 	x86_init.timers.timer_init();
 	tsc_init();
+	tsc_early_fini();
 }
 
 /*
-- 
1.7.1

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[v1 9/9] x86/tsc: use tsc early Pavel Tatashin <pasha.tatashin@oracle.com> - 2017-03-22 21:30 +0100

csiph-web