lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 14 Oct 2006 02:01:57 -0700
From:	"Yinghai Lu" <yinghai.lu@....com>
To:	"Eric W. Biederman" <ebiederm@...ssion.com>,
	"Andi Kleen" <ak@....de>
Cc:	"linux kernel mailing list" <linux-kernel@...r.kernel.org>,
	yhlu.kernel@...il.com
Subject: [PATCH] x86_64: using irq_domain in ioapic_retrigger_irq

using irq_domain[irq] to get cpu_mask for send_IPI_mask

Signed-off-by: Yinghai Lu <yinghai.lu@....com>

diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
index 44b55f8..6a07bce 100644
--- a/arch/x86_64/kernel/io_apic.c
+++ b/arch/x86_64/kernel/io_apic.c
@@ -1254,13 +1254,12 @@ static unsigned int startup_ioapic_irq(u
 static int ioapic_retrigger_irq(unsigned int irq)
 {
        cpumask_t mask;
-       unsigned vector;
+       int vector;

        vector = irq_vector[irq];
-       cpus_clear(mask);
-       cpu_set(vector >> 8, mask);
+       mask = irq_domain[irq];

-       send_IPI_mask(mask, vector & 0xff);
+       send_IPI_mask(mask, vector);

        return 1;
 }

View attachment "io_apic_irq_trigger.diff" of type "text/x-patch" (537 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ