diff options
author | Jeremy Fitzhardinge <[email protected]> | 2013-08-09 19:51:59 +0530 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2013-08-09 07:54:03 -0700 |
commit | 1ed7bf5f5227169b661c619636f754b98001ec30 (patch) | |
tree | 401ebe5d78455719bb3cf65faaa6d2ad1ec38fad /lib/test-string_helpers.c | |
parent | 96f853eaa889c7a22718d275b0df7bebdbd6780e (diff) |
xen, pvticketlock: Allow interrupts to be enabled while blocking
If interrupts were enabled when taking the spinlock, we can leave them
enabled while blocking to get the lock.
If we can enable interrupts while waiting for the lock to become
available, and we take an interrupt before entering the poll,
and the handler takes a spinlock which ends up going into
the slow state (invalidating the per-cpu "lock" and "want" values),
then when the interrupt handler returns the event channel will
remain pending so the poll will return immediately, causing it to
return out to the main spinlock loop.
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Link: http://lkml.kernel.org/r/1376058122-8248-12-git-send-email-raghavendra.kt@linux.vnet.ibm.com
Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
Signed-off-by: Raghavendra K T <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions