/[linux-patches]/genpatches-2.6/trunk/2.6.30/1700_empty-ipi-check.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.30/1700_empty-ipi-check.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1601 - (show annotations) (download) (as text)
Tue Sep 1 07:32:40 2009 UTC (11 years, 2 months ago) by asn
File MIME type: text/x-diff
File size: 360 byte(s)
Fixes freezes caused by careless IPI sends on some x86 setups
1 --- a/arch/x86/kernel/apic/ipi.c
2 +++ b/arch/x86/kernel/apic/ipi.c
3 @@ -106,6 +106,9 @@
4 unsigned long mask = cpumask_bits(cpumask)[0];
5 unsigned long flags;
6
7 + if (WARN_ONCE(!mask, "empty IPI mask"))
8 + return;
9 +
10 local_irq_save(flags);
11 WARN_ON(mask & ~cpumask_bits(cpu_online_mask)[0]);
12 __default_send_IPI_dest_field(mask, vector, apic->dest_logical);

  ViewVC Help
Powered by ViewVC 1.1.20