Re: [PATCH 1/8] clocksource: add dummy software-only clocksource

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 11, 2014 at 01:34:34AM +0400, Antony Pavlov wrote:
> This driver is very handy for initial barebox porting.
> It was used for running barebox on DiGiC2-based camera
> and initial porting barebox to Loongson-1 and ar9331.
> 
> Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> Reported-by: Alexander Aring <alex.aring@xxxxxxxxx>
> Reported-by: Alexander Shiyan <shc_work@xxxxxxx>
> ---
>  drivers/clocksource/Kconfig  |  9 +++++++
>  drivers/clocksource/Makefile |  1 +
>  drivers/clocksource/dummy.c  | 56 ++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 66 insertions(+)
> 
> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index 4ef25ec..f9e00ff 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
> @@ -14,6 +14,15 @@ config CLOCKSOURCE_CLPS711X
>  	bool
>  	depends on ARCH_CLPS711X
>  
> +config CLOCKSOURCE_DUMMY
> +	bool "Enable dummy software-only clocksource"
> +	default n

You can drop the default n, no is the default already. Could you add
some help text mentioning that this clocksource is for early bringup
only and doesn't provide correct timing?

> +
> +config CLOCKSOURCE_DUMMY_RATE
> +	int "compile loglevel"

copy/paste ;) ?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux