diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-02-08 07:19:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:29 -0500 |
commit | 818c357802e2791880057fe752dc9ce9e210f772 (patch) | |
tree | 3694d26a887fea0cb96e843177d3281bc1cc7ef6 | |
parent | 146a505d498c36de98ec161d791dd50beca7f9a3 (diff) |
clocksource: remove redundant code
Flag CLOCK_SOURCE_WATCHDOG is cleared twice. Note clocksource_change_rating()
won't do anyting with the cs flag.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | kernel/time/clocksource.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 81afb3927ecc..548c436a776b 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c | |||
@@ -91,7 +91,6 @@ static void clocksource_ratewd(struct clocksource *cs, int64_t delta) | |||
91 | cs->name, delta); | 91 | cs->name, delta); |
92 | cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG); | 92 | cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG); |
93 | clocksource_change_rating(cs, 0); | 93 | clocksource_change_rating(cs, 0); |
94 | cs->flags &= ~CLOCK_SOURCE_WATCHDOG; | ||
95 | list_del(&cs->wd_list); | 94 | list_del(&cs->wd_list); |
96 | } | 95 | } |
97 | 96 | ||