+28
−14
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
When contended, architectures may be able to reduce the polling overhead
in ways which aren't expressible using a simple relax() primitive.
This patch allows architectures to hook into the mcs_{lock,unlock}
functions for the contended cases only.
Reviewed-by:
Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by:
Will Deacon <will.deacon@arm.com>
Signed-off-by:
Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by:
Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1390347370.3138.65.camel@schen9-DESK
Signed-off-by:
Ingo Molnar <mingo@kernel.org>