diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-08-14 09:47:28 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-08-15 04:55:46 -0400 |
commit | 0a54419836254a27baecd9037103171bcbabaf67 (patch) | |
tree | ad4dc7ca1fc974a53c7fc2e972558bcb6b786afe /include | |
parent | 23ce72117c714baab794e66c8daf343bf6a912bf (diff) |
timekeeping: Move NTP adjusted clock multiplier to struct timekeeper
The clocksource structure has two multipliers, the unmodified multiplier
clock->mult_orig and the NTP corrected multiplier clock->mult. The NTP
multiplier is misplaced in the struct clocksource, this is private
information of the timekeeping code. Add the mult field to the struct
timekeeper to contain the NTP corrected value, keep the unmodifed
multiplier in clock->mult and remove clock->mult_orig.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: John Stultz <johnstul@us.ibm.com>
Cc: Daniel Walker <dwalker@fifo99.com>
LKML-Reference: <20090814134810.149047645@de.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clocksource.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index e12e3095e2fb..e34015effeb6 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -149,8 +149,7 @@ extern u64 timecounter_cyc2time(struct timecounter *tc, | |||
149 | * @disable: optional function to disable the clocksource | 149 | * @disable: optional function to disable the clocksource |
150 | * @mask: bitmask for two's complement | 150 | * @mask: bitmask for two's complement |
151 | * subtraction of non 64 bit counters | 151 | * subtraction of non 64 bit counters |
152 | * @mult: cycle to nanosecond multiplier (adjusted by NTP) | 152 | * @mult: cycle to nanosecond multiplier |
153 | * @mult_orig: cycle to nanosecond multiplier (unadjusted by NTP) | ||
154 | * @shift: cycle to nanosecond divisor (power of two) | 153 | * @shift: cycle to nanosecond divisor (power of two) |
155 | * @flags: flags describing special properties | 154 | * @flags: flags describing special properties |
156 | * @vread: vsyscall based read | 155 | * @vread: vsyscall based read |
@@ -168,7 +167,6 @@ struct clocksource { | |||
168 | void (*disable)(struct clocksource *cs); | 167 | void (*disable)(struct clocksource *cs); |
169 | cycle_t mask; | 168 | cycle_t mask; |
170 | u32 mult; | 169 | u32 mult; |
171 | u32 mult_orig; | ||
172 | u32 shift; | 170 | u32 shift; |
173 | unsigned long flags; | 171 | unsigned long flags; |
174 | cycle_t (*vread)(void); | 172 | cycle_t (*vread)(void); |