clocksource: Resolve cpu hotplug dead lock with TSC unstable
[deliverable/linux.git] / arch / x86 / kernel / tsc.c
index 968425422c46185036f65fc818fdceb4df7311fe..fc3672a303d6298ca994fc58a4e229ac770c5af3 100644 (file)
@@ -767,12 +767,14 @@ void mark_tsc_unstable(char *reason)
 {
        if (!tsc_unstable) {
                tsc_unstable = 1;
-               printk("Marking TSC unstable due to %s\n", reason);
+               printk(KERN_INFO "Marking TSC unstable due to %s\n", reason);
                /* Change only the rating, when not registered */
                if (clocksource_tsc.mult)
-                       clocksource_change_rating(&clocksource_tsc, 0);
-               else
+                       clocksource_mark_unstable(&clocksource_tsc);
+               else {
+                       clocksource_tsc.flags |= CLOCK_SOURCE_UNSTABLE;
                        clocksource_tsc.rating = 0;
+               }
        }
 }
 
This page took 0.029653 seconds and 5 git commands to generate.