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


Groups > linux.kernel > #1608557

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

From Pavel Tatashin <pasha.tatashin@oracle.com>
Newsgroups linux.kernel
Subject [v2 9/9] x86/tsc: use tsc early
Date 2017-03-24 16:30 +0100
Message-ID <tozk7-3uM-73@gated-at.bofh.it> (permalink)
References <tozk5-3uM-9@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(+)

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..2d691eb3 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.8.3.1

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


Thread

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

csiph-web