Re: [PATCH 04/19] ARM: omap1: convert to using readl/writel instead of volatile struct

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

 



On 16 May 2011 18:26, Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> wrote:
> --- a/arch/arm/mach-omap1/time.c
> +++ b/arch/arm/mach-omap1/time.c
...
> Âstatic inline unsigned long notrace omap_mpu_timer_read(int nr)
> Â{
> - Â Â Â volatile omap_mpu_timer_regs_t* timer = omap_mpu_timer_base(nr);
> - Â Â Â return timer->read_tim;
> + Â Â Â omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
> + Â Â Â return readl(&timer->read_tim);
> Â}

We should start using the *_relaxed() accessors a bit more to avoid
the barriers overhead in the standard I/O accessors.

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


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux