linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][2.6-test4][1/6]Support for HPET based timer
@ 2003-08-28 23:42 Pallipadi, Venkatesh
  0 siblings, 0 replies; only message in thread
From: Pallipadi, Venkatesh @ 2003-08-28 23:42 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel, Nakajima, Jun

[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]

1/6 - hpet1.patch - main.c change to introduce late_time_init()





diff -purN linux-2.6.0-test4/init/main.c linux-2.6.0-test4-hpet/init/main.c
--- linux-2.6.0-test4/init/main.c	2003-08-22 16:52:56.000000000 -0700
+++ linux-2.6.0-test4-hpet/init/main.c	2003-08-28 12:18:15.000000000 -0700
@@ -106,6 +106,8 @@ int system_running = 0;
 #define MAX_INIT_ENVS 8
 
 extern void time_init(void);
+/* Default late time init is NULL. archs can override this later. */
+void (*late_time_init)(void) = NULL;
 extern void softirq_init(void);
 
 int rows, cols;
@@ -421,7 +423,6 @@ asmlinkage void __init start_kernel(void
 	console_init();
 	profile_init();
 	local_irq_enable();
-	calibrate_delay();
 #ifdef CONFIG_BLK_DEV_INITRD
 	if (initrd_start && !initrd_below_start_ok &&
 			initrd_start < min_low_pfn << PAGE_SHIFT) {
@@ -433,6 +434,9 @@ asmlinkage void __init start_kernel(void
 	page_address_init();
 	mem_init();
 	kmem_cache_init();
+	if (late_time_init)
+		late_time_init();
+	calibrate_delay();
 	pidmap_init();
 	pgtable_cache_init();
 	pte_chain_init();






[-- Attachment #2: hpet01.patch --]
[-- Type: application/octet-stream, Size: 992 bytes --]

diff -purN linux-2.6.0-test4/init/main.c linux-2.6.0-test4-hpet/init/main.c
--- linux-2.6.0-test4/init/main.c	2003-08-22 16:52:56.000000000 -0700
+++ linux-2.6.0-test4-hpet/init/main.c	2003-08-28 12:18:15.000000000 -0700
@@ -106,6 +106,8 @@ int system_running = 0;
 #define MAX_INIT_ENVS 8
 
 extern void time_init(void);
+/* Default late time init is NULL. archs can override this later. */
+void (*late_time_init)(void) = NULL;
 extern void softirq_init(void);
 
 int rows, cols;
@@ -421,7 +423,6 @@ asmlinkage void __init start_kernel(void
 	console_init();
 	profile_init();
 	local_irq_enable();
-	calibrate_delay();
 #ifdef CONFIG_BLK_DEV_INITRD
 	if (initrd_start && !initrd_below_start_ok &&
 			initrd_start < min_low_pfn << PAGE_SHIFT) {
@@ -433,6 +434,9 @@ asmlinkage void __init start_kernel(void
 	page_address_init();
 	mem_init();
 	kmem_cache_init();
+	if (late_time_init)
+		late_time_init();
+	calibrate_delay();
 	pidmap_init();
 	pgtable_cache_init();
 	pte_chain_init();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-28 23:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-28 23:42 [PATCH][2.6-test4][1/6]Support for HPET based timer Pallipadi, Venkatesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).