diff options
author | David Vrabel <[email protected]> | 2012-04-26 19:44:06 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <[email protected]> | 2012-04-27 16:04:21 -0400 |
commit | 7eb7ce4d2e8991aff4ecb71a81949a907ca755ac (patch) | |
tree | f04b92fc472ca0d41ae5eb61daff6748789cd747 /lib/mpi/mpi-inline.c | |
parent | b930fe5e1f5646e071facda70b25b137ebeae5af (diff) |
xen: correctly check for pending events when restoring irq flags
In xen_restore_fl_direct(), xen_force_evtchn_callback() was being
called even if no events were pending. This resulted in (depending on
workload) about a 100 times as many xen_version hypercalls as
necessary.
Fix this by correcting the sense of the conditional jump.
This seems to give a significant performance benefit for some
workloads.
There is some subtle tricksy "..since the check here is trying to
check both pending and masked in a single cmpw, but I think this is
correct. It will call check_events now only when the combined
mask+pending word is 0x0001 (aka unmasked, pending)." (Ian)
CC: [email protected]
Acked-by: Ian Campbell <[email protected]>
Signed-off-by: David Vrabel <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions