]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/powerpc/kernel/head_fsl_booke.S
powerpc: Do not call prink when CONFIG_PRINTK is not defined
[mirror_ubuntu-bionic-kernel.git] / arch / powerpc / kernel / head_fsl_booke.S
index a7cf4934342c1f9e7dbb56adfaa6656023131a5e..725526547994d76ce6386d23d8398946357c6291 100644 (file)
@@ -884,13 +884,17 @@ KernelSPE:
        lwz     r3,_MSR(r1)
        oris    r3,r3,MSR_SPE@h
        stw     r3,_MSR(r1)     /* enable use of SPE after return */
+#ifdef CONFIG_PRINTK
        lis     r3,87f@h
        ori     r3,r3,87f@l
        mr      r4,r2           /* current */
        lwz     r5,_NIP(r1)
        bl      printk
+#endif
        b       ret_from_except
+#ifdef CONFIG_PRINTK
 87:    .string "SPE used in kernel  (task=%p, pc=%x)  \n"
+#endif
        .align  4,0
 
 #endif /* CONFIG_SPE */