Re: [PATCH 08/19] OpenRISC: Timekeeping

From: Arnd Bergmann
Date: Sun Jun 19 2011 - 15:06:42 EST


> + arch/openrisc/kernel/time.c | 182 +++++++++++++++++++++++++++++++++++++

Would this fit into drivers/clocksource, at least partly?

> +static struct clocksource openrisc_timer = {
> + .name = "openrisc_timer",
> + .rating = 200,
> + .read = openrisc_timer_read,
> + .mask = CLOCKSOURCE_MASK(32),
> + .flags = CLOCK_SOURCE_IS_CONTINUOUS,
> +};
> +
> +static int __init openrisc_timer_init(void)
> +{
> + if (clocksource_register_hz(&openrisc_timer, cpuinfo.clock_frequency))
> + panic("failed to register clocksource");
> +
> + /* Enable the incrementer: 'continuous' mode with interrupt disabled */
> + mtspr(SPR_TTMR, SPR_TTMR_CR);
> +
> + return 0;
> +}

You have soem whitespace damage here. It would be good to run your patches
through scripts/checkpatch.pl and fix up everything reported there.



Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/