|
@@ -1067,6 +1067,7 @@ static struct clocksource clocksource_tsc_early = {
|
|
.resume = tsc_resume,
|
|
.resume = tsc_resume,
|
|
.mark_unstable = tsc_cs_mark_unstable,
|
|
.mark_unstable = tsc_cs_mark_unstable,
|
|
.tick_stable = tsc_cs_tick_stable,
|
|
.tick_stable = tsc_cs_tick_stable,
|
|
|
|
+ .list = LIST_HEAD_INIT(clocksource_tsc_early.list),
|
|
};
|
|
};
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1086,6 +1087,7 @@ static struct clocksource clocksource_tsc = {
|
|
.resume = tsc_resume,
|
|
.resume = tsc_resume,
|
|
.mark_unstable = tsc_cs_mark_unstable,
|
|
.mark_unstable = tsc_cs_mark_unstable,
|
|
.tick_stable = tsc_cs_tick_stable,
|
|
.tick_stable = tsc_cs_tick_stable,
|
|
|
|
+ .list = LIST_HEAD_INIT(clocksource_tsc.list),
|
|
};
|
|
};
|
|
|
|
|
|
void mark_tsc_unstable(char *reason)
|
|
void mark_tsc_unstable(char *reason)
|
|
@@ -1098,13 +1100,9 @@ void mark_tsc_unstable(char *reason)
|
|
clear_sched_clock_stable();
|
|
clear_sched_clock_stable();
|
|
disable_sched_clock_irqtime();
|
|
disable_sched_clock_irqtime();
|
|
pr_info("Marking TSC unstable due to %s\n", reason);
|
|
pr_info("Marking TSC unstable due to %s\n", reason);
|
|
- /* Change only the rating, when not registered */
|
|
|
|
- if (clocksource_tsc.mult) {
|
|
|
|
- clocksource_mark_unstable(&clocksource_tsc);
|
|
|
|
- } else {
|
|
|
|
- clocksource_tsc.flags |= CLOCK_SOURCE_UNSTABLE;
|
|
|
|
- clocksource_tsc.rating = 0;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ clocksource_mark_unstable(&clocksource_tsc_early);
|
|
|
|
+ clocksource_mark_unstable(&clocksource_tsc);
|
|
}
|
|
}
|
|
|
|
|
|
EXPORT_SYMBOL_GPL(mark_tsc_unstable);
|
|
EXPORT_SYMBOL_GPL(mark_tsc_unstable);
|