Commit:     948ac6d71cf868b431adb3139d8dfbd9c4e4a6ca
Parent:     9501b6cf5541f0d576d566a463f1e7d3eaaab4eb
Author:     Thomas Gleixner <[EMAIL PROTECTED]>
AuthorDate: Sun Mar 25 14:42:51 2007 +0200
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Mar 25 14:57:34 2007 -0700

    [PATCH] clocksource: Fix thinko in watchdog selection
    The watchdog implementation excludes low res / non continuous
    clocksources from being selected as a watchdog reference
    Allow using jiffies/PIT as a watchdog reference as long as no better
    clocksource is available. This is necessary to detect TSC breakage on
    systems, which have no pmtimer/hpet.
    The main goal of the initial patch (preventing to switch to highres/nohz
    when no reliable fallback clocksource is available) is still guaranteed
    by the checks in clocksource_watchdog().
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 kernel/time/clocksource.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 5b0e46b..fe5c7db 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -151,7 +151,8 @@ static void clocksource_check_watchdog(struct clocksource 
                        watchdog_timer.expires = jiffies + WATCHDOG_INTERVAL;
-       } else if (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS) {
+       } else {
+               if (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS)
                        cs->flags |= CLOCK_SOURCE_VALID_FOR_HRES;
                if (!watchdog || cs->rating > watchdog->rating) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to