[PATCH V5 3/6] arm: cache-l2x0: add support for Aurora L2 cache ctrl
Catalin Marinas
catalin.marinas at arm.com
Wed Sep 26 13:11:49 EDT 2012
On 26 September 2012 17:02, Gregory CLEMENT
<gregory.clement at free-electrons.com> wrote:
> +static void aurora_pa_range(unsigned long start, unsigned long end,
> + unsigned long offset)
> +{
> + unsigned long flags;
> +
> + raw_spin_lock_irqsave(&l2x0_lock, flags);
> + writel(start, l2x0_base + AURORA_RANGE_BASE_ADDR_REG);
> + writel(end, l2x0_base + offset);
Just use writel_relaxed() here for consistency and possible deadlock avoidance.
--
Catalin
More information about the linux-arm-kernel
mailing list