Lowers the "priority" of clocksource tsc below acpi on x86 systems.
I'm doing this, because tsc is not stable on virtualized machines nor on smp 
systems, and so acpi gets selected instead of tsc and then jiffies (if acpi is 
built in, which I would recommend for x86).

Signed-off-by: Alexander Stadler <sa.maillists at univie.ac.at>

------

diff -urN openwrt-8.09/arch/x86/kernel/tsc_32.c openwrt/arch/x86/kernel/tsc_32.c
--- a/arch/x86/kernel/tsc_32.c  2008-09-08 12:20:51.000000000 +0200
+++ b/arch/x86/kernel/tsc_32.c  2009-04-17 11:55:40.000000000 +0200
@@ -297,7 +297,7 @@
 
 static struct clocksource clocksource_tsc = {
        .name                   = "tsc",
-       .rating                 = 300,
+       .rating                 = 199,
        .read                   = read_tsc,
        .mask                   = CLOCKSOURCE_MASK(64),
        .mult                   = 0, /* to be set */
diff -urN openwrt-8.09/arch/x86/kernel/tsc_64.c openwrt/arch/x86/kernel/tsc_64.c
--- a/arch/x86/kernel/tsc_64.c  2008-09-08 12:20:51.000000000 +0200
+++ b/arch/x86/kernel/tsc_64.c  2009-04-17 11:55:42.000000000 +0200
@@ -305,7 +305,7 @@
 
 static struct clocksource clocksource_tsc = {
        .name                   = "tsc",
-       .rating                 = 300,
+       .rating                 = 199,
        .read                   = read_tsc,
        .mask                   = CLOCKSOURCE_MASK(64),
        .shift                  = 22,




_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to