};
struct platform_timesource {
+ char *id;
char *name;
u64 frequency;
u64 (*read_counter)(void);
static struct platform_timesource plt_pit =
{
+ .id = "pit",
.name = "PIT",
.frequency = CLOCK_TICK_RATE,
.read_counter = read_pit_count,
static struct platform_timesource plt_hpet =
{
+ .id = "hpet",
.name = "HPET",
.read_counter = read_hpet_count,
.counter_bits = 32,
static struct platform_timesource plt_cyclone =
{
+ .id = "cyclone",
.name = "IBM Cyclone",
.frequency = CYCLONE_TIMER_FREQ,
.read_counter = read_cyclone_count,
static struct platform_timesource plt_pmtimer =
{
+ .id = "acpi",
.name = "ACPI PM Timer",
.frequency = ACPI_PM_FREQUENCY,
.read_counter = read_pmtimer_count,
for ( i = 0; i < ARRAY_SIZE(plt_timers); i++ )
{
pts = plt_timers[i];
- if ( !strcmp(opt_clocksource, pts->name) )
+ if ( !strcmp(opt_clocksource, pts->id) )
{
rc = pts->init(pts);
break;