Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99537
b: refs/heads/master
c: 239d1fc
h: refs/heads/master
i:
  99535: 6e15d1b
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Thomas Gleixner committed May 27, 2008
1 parent c94cd21 commit 9d9f893
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2956a3511c8c5dccb1d4739ead17c7c3c23a24b7
refs/heads/master: 239d1fc04ed0b58d638096b12a7f6d50269d30c9
10 changes: 5 additions & 5 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ static void xen_irq_enable(void)
{
struct vcpu_info *vcpu;

/* There's a one instruction preempt window here. We need to
make sure we're don't switch CPUs between getting the vcpu
pointer and updating the mask. */
preempt_disable();
/* We don't need to worry about being preempted here, since
either a) interrupts are disabled, so no preemption, or b)
the caller is confused and is trying to re-enable interrupts
on an indeterminate processor. */

vcpu = x86_read_percpu(xen_vcpu);
vcpu->evtchn_upcall_mask = 0;
preempt_enable_no_resched();

/* Doesn't matter if we get preempted here, because any
pending event will get dealt with anyway. */
Expand Down

0 comments on commit 9d9f893

Please sign in to comment.