On Thu, May 24, 2012 at 2:53 AM, Michael Schmitz
<[email protected]> wrote:
> +#if defined(CONFIG_M68000) || defined(CONFIG_COLDFIRE)
> +/*
> + * The simpler m68k and ColdFire processors do not have a 32*32->64
> + * multiply instruction. So we need to handle them a little differently.
> + * We use a bit of shifting and a single 32*32->32 multiply to get close.
> + * This is a macro so that the const version can factor out the first
> + * multiply and shift.
> + */
> +#define        HZSCALE         (268435456 / (1000000 / HZ))
> +
> +#define ndelay(n) __delay( DIV_ROUND_UP( (n) * ((((HZSCALE) >> 11) * 
> (loops_per_jiffy >> 11)) >> 6), 1000 ) );
> +
> +#endif

Why do you need this? CONFIG_M68000 and CONFIG_COLDFIRE are not set?

You end up using the default implementation in include/linux/delay.h.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to