[PATCH] Fix interrupt distribution in ppc970

Milton Miller miltonm at bga.com
Fri Jun 15 12:35:49 EDT 2007


On Jun 12, 2007, at 9:51 AM, Mohan Kumar M wrote:
>
> Attached patch uses cpumask_scnprintf function.


> In some of the PPC970 based systems, interrupt would be distributed to
> offline cpus also even when booted with "maxcpus=1". So check whether
> cpu online map and cpu present map are equal or not. If they are equal
> default_distrib_server is used as interrupt server otherwise boot cpu
> (default_server) used as interrupt server.
>
> In addition to this, if an interrupt is assigned to a specific cpu (ie
> smp affinity) and if that cpu is not online, the earlier code used to
> return the default_distrib_server as interrupt server. This patch
> introduces an additional paramter to the get_irq function ie
> strict_check, based on this parameter, if the cpu is not online either
> default_distrib_server or -1 is returned.
>
> Cc: Milton Miller <miltonm at bga.com>,
>     Michael Ellerman <michael at ellerman.id.au>
> Signed-off-by: Mohan Kumar M <mohan at in.ibm.com>
>

Acked-by: Milton Miller <miltonm at bga.com>




More information about the kexec mailing list