android_kernel_xiaomi_sdm845/arch/powerpc
Michael Ellerman 33dbcf72f6 [POWERPC] Make sure smp_processor_id works very early in boot
There's a small period early in boot where we don't know which cpu we're
running on. That's ok, except that it means we have no paca, or more
correctly that our paca pointer points somewhere random.

So that we can safely call things like smp_processor_id(), we need a paca,
so just assume we're on cpu 0. No code should _write_ to the paca before
we've set the correct one up.

We setup the proper paca after we've scanned the flat device tree in
early_setup(), so there's no need to do it again in start_here_common.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-06-29 16:22:47 +10:00
..
boot Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2006-06-22 22:11:30 -07:00
configs [POWERPC] mpc7448hpc2 (taiga) board config file 2006-06-29 16:20:36 +10:00
kernel [POWERPC] Make sure smp_processor_id works very early in boot 2006-06-29 16:22:47 +10:00
lib [POWERPC] Optimise some TOC usage 2006-06-15 19:31:25 +10:00
math-emu powerpc: move math-emu over to arch/powerpc 2006-03-27 23:43:27 -06:00
mm [POWERPC] Fix idr locking in init_new_context 2006-06-29 16:22:46 +10:00
oprofile [PATCH] oprofile: Fix unnecessary cleverness 2006-06-26 09:58:17 -07:00
platforms [POWERPC] Make lparcfg.c work when both iseries and pseries are selected 2006-06-29 16:22:46 +10:00
sysdev [POWERPC] U4 DART improvements 2006-06-29 16:22:46 +10:00
xmon [PATCH] Rewritten backlight infrastructure for portable Apple computers 2006-06-25 10:00:59 -07:00
Kconfig [POWERPC] todc: add support for Time-Of-Day-Clock 2006-06-29 16:22:46 +10:00
Kconfig.debug [POWERPC] Add udbg support for RTAS console 2006-06-28 11:59:48 +10:00
Makefile [POWERPC] Remove stale 64bit on 32bit kernel code 2006-06-15 19:31:26 +10:00