|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] unmodified_drivers: handle IRQF_SAMPLE_RANDOM
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1347267253 -7200
# Node ID 87cb4b6f53d374d3b1415cb77f7ee3d60c4d06c5
# Parent 7d216f026f71022186196a75244e97cf3864f50b
unmodified_drivers: handle IRQF_SAMPLE_RANDOM
The flag IRQF_SAMPLE_RANDOM was removed in 3.6-rc1. Add it only if it is
defined. An additional call to add_interrupt_randomness is appearently
not needed because its now called unconditionally in
handle_irq_event_percpu().
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Committed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
diff -r 7d216f026f71 -r 87cb4b6f53d3
unmodified_drivers/linux-2.6/platform-pci/evtchn.c
--- a/unmodified_drivers/linux-2.6/platform-pci/evtchn.c Mon Sep 10
09:45:30 2012 +0200
+++ b/unmodified_drivers/linux-2.6/platform-pci/evtchn.c Mon Sep 10
10:54:13 2012 +0200
@@ -350,7 +350,11 @@ int xen_irq_init(struct pci_dev *pdev)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
SA_SHIRQ | SA_SAMPLE_RANDOM | SA_INTERRUPT,
#else
- IRQF_SHARED | IRQF_SAMPLE_RANDOM | IRQF_DISABLED,
+ IRQF_SHARED |
+#ifdef IRQF_SAMPLE_RANDOM
+ IRQF_SAMPLE_RANDOM |
+#endif
+ IRQF_DISABLED,
#endif
"xen-platform-pci", pdev);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |