From: Keir Fraser Date: Wed, 19 Nov 2008 12:40:23 +0000 (+0000) Subject: x86: Fix the clocksource= boot parameter after c/s 18786. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14043^2~20 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6146e844ab71eb1526643b5ce9fbb393e2c287b4;p=xen.git x86: Fix the clocksource= boot parameter after c/s 18786. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index acd8750b7d..ceb360e4d4 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -56,6 +56,7 @@ struct cpu_time { }; struct platform_timesource { + char *id; char *name; u64 frequency; u64 (*read_counter)(void); @@ -370,6 +371,7 @@ static int init_pit(struct platform_timesource *pts) static struct platform_timesource plt_pit = { + .id = "pit", .name = "PIT", .frequency = CLOCK_TICK_RATE, .read_counter = read_pit_count, @@ -407,6 +409,7 @@ static void resume_hpet(struct platform_timesource *pts) static struct platform_timesource plt_hpet = { + .id = "hpet", .name = "HPET", .read_counter = read_hpet_count, .counter_bits = 32, @@ -471,6 +474,7 @@ static int init_cyclone(struct platform_timesource *pts) static struct platform_timesource plt_cyclone = { + .id = "cyclone", .name = "IBM Cyclone", .frequency = CYCLONE_TIMER_FREQ, .read_counter = read_cyclone_count, @@ -502,6 +506,7 @@ static int init_pmtimer(struct platform_timesource *pts) static struct platform_timesource plt_pmtimer = { + .id = "acpi", .name = "ACPI PM Timer", .frequency = ACPI_PM_FREQUENCY, .read_counter = read_pmtimer_count, @@ -599,7 +604,7 @@ static void init_platform_timer(void) 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;