You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] clocksource: replace is_continuous by a flag field
Using a flag filed allows to encode more than one information into a variable. Preparatory patch for the generic clocksource verification. [mingo@elte.hu: convert vmitime.c to the new clocksource flag] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: john stultz <johnstul@us.ibm.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
95492e4646
commit
73b08d2aa4
@@ -72,7 +72,8 @@ static struct clocksource clocksource_acpi_pm = {
|
||||
.mask = (cycle_t)ACPI_PM_MASK,
|
||||
.mult = 0, /*to be caluclated*/
|
||||
.shift = 22,
|
||||
.is_continuous = 1,
|
||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ static struct clocksource clocksource_cyclone = {
|
||||
.mask = CYCLONE_TIMER_MASK,
|
||||
.mult = 10,
|
||||
.shift = 0,
|
||||
.is_continuous = 1,
|
||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
||||
};
|
||||
|
||||
static int __init init_cyclone_clocksource(void)
|
||||
|
||||
@@ -57,7 +57,7 @@ static struct clocksource cs_hrt = {
|
||||
.rating = 250,
|
||||
.read = read_hrt,
|
||||
.mask = CLOCKSOURCE_MASK(32),
|
||||
.is_continuous = 1,
|
||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
||||
/* mult, shift are set based on mhz27 flag */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user