-
Philippe Gerum authored
Since debug_smp_processor_id() can be called very early during the boot process when CONFIG_DEBUG_PREEMPT is enabled, testing ipipe_root_p() may be invalid on architectures with late percpu memory fixups such as ppc64. Prevent bad references to invalid percpu memory by checking for disabled hard IRQs first, which denotes a non-preemptible context, and always evaluates to true during the early boot phase mentioned above.
a648a316