Re: [PATCH 11/13] Time: x86-64 Conversion to Generic Timekeeping

From: Ingo Molnar
Date: Sat Nov 26 2005 - 10:10:54 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

> - clean up timeofday-arch-x86-64-part1.patch

the addon patch below is needed as well, to get x64 build and boot.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>

arch/x86_64/kernel/time.c | 12 ++++++++++++
1 files changed, 12 insertions(+)

Index: linux/arch/x86_64/kernel/time.c
===================================================================
--- linux.orig/arch/x86_64/kernel/time.c
+++ linux/arch/x86_64/kernel/time.c
@@ -1134,6 +1134,18 @@ static cycle_t read_tsc_c3(void)

#endif /* CONFIG_PARANOID_GENERIC_TIME */

+static struct clocksource clocksource_tsc = {
+ .name = "tsc",
+ .rating = 300,
+ .read = read_tsc,
+ .vread = vread_tsc,
+ .mask = (cycle_t)-1,
+ .mult = 0, /* to be set */
+ .shift = 22,
+ .update_callback = tsc_update_callback,
+ .is_continuous = 1,
+};
+
static int tsc_update_callback(void)
{
int change = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/