Explorar o código

[S390] tod clock: announce clocksource as perfect

The Time of Day clock is the standard time source for s390. It is
- monotonic
- allows very fast reading
- architecture guarantees at least microsecond stepping
- available as part of the architecture

We should announce the rate of tod as 400 to be in sync with the
description found in clocksource.h:
"400-499:Perfect The ideal clocksource. A must-use where available."

This change will prefer tod over less reliable clock sources.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Christian Borntraeger %!s(int64=17) %!d(string=hai) anos
pai
achega
d2cb0e6ecb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/s390/kernel/time.c

+ 1 - 1
arch/s390/kernel/time.c

@@ -307,7 +307,7 @@ static cycle_t read_tod_clock(void)
 
 
 static struct clocksource clocksource_tod = {
 static struct clocksource clocksource_tod = {
 	.name		= "tod",
 	.name		= "tod",
-	.rating		= 100,
+	.rating		= 400,
 	.read		= read_tod_clock,
 	.read		= read_tod_clock,
 	.mask		= -1ULL,
 	.mask		= -1ULL,
 	.mult		= 1000,
 	.mult		= 1000,