lkml.org 
[lkml]   [2008]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [CPUISOL] Do not route IRQs to the CPUs isolated at boot
Date
From: Max Krasnyansky <maxk@qualcomm.com>

Most people would expect isolated CPUs to not get any
IRQs by default. This happens naturally if CPU is brought
off-line, marked isolated and then brought back online.

Signed-off-by: Max Krasnyansky <maxk@qualcomm.com>
---
arch/x86/kernel/genapic_flat_64.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c
index 07352b7..e02e58c 100644
--- a/arch/x86/kernel/genapic_flat_64.c
+++ b/arch/x86/kernel/genapic_flat_64.c
@@ -21,7 +21,9 @@

static cpumask_t flat_target_cpus(void)
{
- return cpu_online_map;
+ cpumask_t target;
+ cpus_andnot(target, cpu_online_map, cpu_isolated_map);
+ return target;
}

static cpumask_t flat_vector_allocation_domain(int cpu)
--
1.5.3.7


\
 
 \ /
  Last update: 2008-01-28 05:35    [W:0.598 / U:1.232 seconds]
©2003-2014 Jasper Spaans. Advertise on this site