android_kernel_xiaomi_sdm845/arch/powerpc
Mohan Kumar M 7ccb4a6624 [POWERPC] Fix interrupt distribution in ppc970
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
introduces an additional parameter to the get_irq function, called
strict_check.  Based on this parameter, if the cpu is not online
either default_distrib_server or -1 is returned.

Signed-off-by: Mohan Kumar M <mohan@in.ibm.com>
Cc: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-06-25 17:03:31 +10:00
..
boot [POWERPC] Remove 'console=' from cmdline on prpmc2800 2007-06-25 17:02:12 +10:00
configs [POWERPC] Update holly to use new dts wrapping feature 2007-06-25 17:02:04 +10:00
kernel [POWERPC] Do firmware feature fixups after features are initialised 2007-06-25 17:03:26 +10:00
lib [POWERPC] Fix alignment problem in rh_alloc_align() with exact-sized blocks 2007-05-17 21:10:16 +10:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Kill typedef-ed structs for hash PTEs and BATs 2007-06-14 22:30:16 +10:00
oprofile Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
platforms [POWERPC] Fix interrupt distribution in ppc970 2007-06-25 17:03:31 +10:00
sysdev [POWERPC] Call add_preferred_console when MPSC is console 2007-06-25 17:02:09 +10:00
xmon Simplify kallsyms_lookup() 2007-05-08 11:15:08 -07:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] Use mktime in timer sysdev 2007-06-25 16:56:09 +10:00
Kconfig.debug Fix trivial typos in Kconfig* files 2007-05-09 07:12:20 +02:00
Makefile [POWERPC] Remove 'make zImage.dts' feature 2007-06-25 16:58:12 +10:00