[RFC PATCH 04/12] arm: mm: cache-l2x0: add l2x0 suspend and resume functions
Ruan, Willie
wruan at quicinc.com
Fri Jan 29 13:23:55 EST 2010
> From: Daniel Walker [mailto:dwalker at codeaurora.org]
> Sent: Friday, January 29, 2010 9:59 AM
>
> What if there are multiple cpu's calling cache_sync() at the same time?
> Disable interrupt wouldn't prevent it ..
cache_sync() is calling sync_writel(), which is using spin_lock_irqsave().
So, each call of cache_sync() and sync_writel() is SMP safe individually
in l2x0_flush_all() as in l2x0_inv_all(), unless we need to protect the
two calls together, which seems not necessary to me.
Thanks,
~Willie
More information about the linux-arm-kernel
mailing list