aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/events.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-11-06 23:13:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-11-06 23:13:34 -0500
commitdaedd8708fe7707ed651bb1c83162f25c48a947c (patch)
tree424e9aaa7d6f686b729257e753e4edf91fecb73c /drivers/xen/events.c
parent6a6662ced4153f6dbcfc40d7225c3cc45416039c (diff)
parent6b71c52e7f848e2c9f804e175215e5965ea90d32 (diff)
Merge branch 'stable/cleanups-3.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
* 'stable/cleanups-3.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen: xen: use static initializers in xen-balloon.c Xen: fix braces and tabs coding style issue in xenbus_probe.c Xen: fix braces coding style issue in xenbus_probe.h Xen: fix whitespaces,tabs coding style issue in drivers/xen/pci.c Xen: fix braces coding style issue in gntdev.c and grant-table.c Xen: fix whitespaces,tabs coding style issue in drivers/xen/events.c Xen: fix whitespaces,tabs coding style issue in drivers/xen/balloon.c Fix up trivial whitespace-conflicts in drivers/xen/{balloon.c,pci.c,xenbus/xenbus_probe.c}
Diffstat (limited to 'drivers/xen/events.c')
-rw-r--r--drivers/xen/events.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 0eb8a57cc808..6e075cdd0c6b 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -85,8 +85,7 @@ enum xen_irq_type {
85 * IPI - IPI vector 85 * IPI - IPI vector
86 * EVTCHN - 86 * EVTCHN -
87 */ 87 */
88struct irq_info 88struct irq_info {
89{
90 struct list_head list; 89 struct list_head list;
91 enum xen_irq_type type; /* type */ 90 enum xen_irq_type type; /* type */
92 unsigned irq; 91 unsigned irq;
@@ -282,9 +281,9 @@ static inline unsigned long active_evtchns(unsigned int cpu,
282 struct shared_info *sh, 281 struct shared_info *sh,
283 unsigned int idx) 282 unsigned int idx)
284{ 283{
285 return (sh->evtchn_pending[idx] & 284 return sh->evtchn_pending[idx] &
286 per_cpu(cpu_evtchn_mask, cpu)[idx] & 285 per_cpu(cpu_evtchn_mask, cpu)[idx] &
287 ~sh->evtchn_mask[idx]); 286 ~sh->evtchn_mask[idx];
288} 287}
289 288
290static void bind_evtchn_to_cpu(unsigned int chn, unsigned int cpu) 289static void bind_evtchn_to_cpu(unsigned int chn, unsigned int cpu)
@@ -1180,7 +1179,7 @@ static void __xen_evtchn_do_upcall(void)
1180 int cpu = get_cpu(); 1179 int cpu = get_cpu();
1181 struct shared_info *s = HYPERVISOR_shared_info; 1180 struct shared_info *s = HYPERVISOR_shared_info;
1182 struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu); 1181 struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu);
1183 unsigned count; 1182 unsigned count;
1184 1183
1185 do { 1184 do {
1186 unsigned long pending_words; 1185 unsigned long pending_words;