[PATCH] arm: fix lockdep warning of "unannotated irqs-off"
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Jun 1 12:01:44 EDT 2011
On Wed, Jun 01, 2011 at 11:52:21PM +0800, Ming Lei wrote:
> Except for tracing max time of irq disable, lock proving has to be
> supported if user needs it. So we should introduces the changes below
> into the patch:
No, you've completely missed the point: when we are not doing latency
analysis of IRQs-off regions, there is _no_ _point_ in telling the
kernel that IRQs are on while userspace is running - userspace will not
be taking any kernel locks itself.
So, the way things are setup at the moment on ARM, we "optimize" the
overhead of telling lockdep that IRQs are enabled while userspace is
running away _provided_ we are not doing IRQs-off latency tracing.
IOW, when CONFIG_IRQSOFF_TRACER is not set, we optimize away the
trace_hardirq_on call when entering userspace, and the trace_hardirq_off
call when leaving userspace.
I'm not sure why you're not grasping that, but I've explained it to you
several times in telling you that when CONFIG_IRQSOFF_TRACER is not set,
the kernel treats userspace as an IRQs-off region.
More information about the linux-arm-kernel
mailing list