mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
xen: add resend_irq_on_evtchn() definition into events.c
Define resend_irq_on_evtchn() which ia64/xen uses. Although it isn't used by current x86/xen code, it's arch generic so that put it into common code. Signed-off-by: Isaku Yamahata <[email protected]> Signed-off-by: Jeremy Fitzhardinge <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
e849c3e9e0
commit
642e0c882c
2 changed files with 17 additions and 0 deletions
|
|
@ -586,6 +586,22 @@ static void set_affinity_irq(unsigned irq, cpumask_t dest)
|
|||
rebind_irq_to_cpu(irq, tcpu);
|
||||
}
|
||||
|
||||
int resend_irq_on_evtchn(unsigned int irq)
|
||||
{
|
||||
int masked, evtchn = evtchn_from_irq(irq);
|
||||
struct shared_info *s = HYPERVISOR_shared_info;
|
||||
|
||||
if (!VALID_EVTCHN(evtchn))
|
||||
return 1;
|
||||
|
||||
masked = sync_test_and_set_bit(evtchn, s->evtchn_mask);
|
||||
sync_set_bit(evtchn, s->evtchn_pending);
|
||||
if (!masked)
|
||||
unmask_evtchn(evtchn);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void enable_dynirq(unsigned int irq)
|
||||
{
|
||||
int evtchn = evtchn_from_irq(irq);
|
||||
|
|
|
|||
Loading…
Reference in a new issue