]> git.karo-electronics.de Git - linux-beck.git/commitdiff
xtensa: mark ccount as continuous clocksource
authorBaruch Siach <baruch@tkos.co.il>
Wed, 16 Oct 2013 22:42:18 +0000 (02:42 +0400)
committerChris Zankel <chris@zankel.net>
Tue, 14 Jan 2014 18:19:54 +0000 (10:19 -0800)
This allows ccount to be used as highres timer.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/kernel/time.c

index 9af3dd88ad7eac172e4fb835e94c70e369547438..26eb6a9e8d4e84d355e1b3c5317f4afe530ff584 100644 (file)
@@ -46,6 +46,7 @@ static struct clocksource ccount_clocksource = {
        .rating = 200,
        .read = ccount_read,
        .mask = CLOCKSOURCE_MASK(32),
+       .flags = CLOCK_SOURCE_IS_CONTINUOUS,
 };
 
 static int ccount_timer_set_next_event(unsigned long delta,