[PATCH] MIPS: csrc-r4k: use CLOCKSOURCE_MASK() macro

Antony Pavlov antonynpavlov at gmail.com
Sat Dec 14 06:59:27 EST 2013


On Tue, 10 Dec 2013 09:10:55 +0400
Antony Pavlov <antonynpavlov at gmail.com> wrote:

Sascha, please apply this trivial patch.

> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
>  arch/mips/lib/csrc-r4k.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/lib/csrc-r4k.c b/arch/mips/lib/csrc-r4k.c
> index 2978fcf..c699f2b 100644
> --- a/arch/mips/lib/csrc-r4k.c
> +++ b/arch/mips/lib/csrc-r4k.c
> @@ -32,7 +32,7 @@ static uint64_t c0_hpt_read(void)
>  
>  static struct clocksource cs = {
>  	.read	= c0_hpt_read,
> -	.mask	= 0xffffffff,
> +	.mask	= CLOCKSOURCE_MASK(32),
>  };
>  
>  static int clocksource_init(void)
> -- 
> 1.8.5
> 


-- 
-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list