Re: [PATCH 24/56] microblaze_v2: time support

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

 



> +static inline void udelay(unsigned long usec)
> +{
> +	unsigned long long tmp = usec;
> +	unsigned long loops = (tmp * 4295 * HZ * loops_per_jiffy) >> 32;
> +	__delay(loops);
> +}

Let's hope like hell the CPU has HW multipler and shifter for this
one! :)

> +++ b/include/asm-microblaze/timex.h
> @@ -0,0 +1,20 @@
> +
> +#define CLOCK_TICK_RATE 1000 /* Timer input freq. */

What's this?  Is it used anywhere?



--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux