From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay01.digicable.hu (relay01.digicable.hu [92.249.128.189]) by ozlabs.org (Postfix) with ESMTP id 04B98B7D1E for ; Fri, 12 Mar 2010 17:56:07 +1100 (EST) Message-ID: <4B99E582.5030705@freemail.hu> Date: Fri, 12 Mar 2010 07:56:02 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= MIME-Version: 1.0 To: Benjamin Herrenschmidt , Paul Mackerras Subject: [PATCH] powerpc: do not call printk when CONFIG_PRINTK is not defined References: <4B93674B.4090708@freemail.hu> In-Reply-To: <4B93674B.4090708@freemail.hu> Content-Type: text/plain; charset=UTF-8 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Márton Németh When printk() is disabled (CONFIG_PRINTK) at menu item General setup -> Configure standard kernel features (for small systems) -> Enable support for printk then there should be no printk() calls at all. Signed-off-by: Márton Németh --- Just a typo was fixed in the title. --- diff -upr linux-2.6.33.orig/arch/powerpc/kernel/head_fsl_booke.S linux/arch/powerpc/kernel/head_fsl_booke.S --- linux-2.6.33.orig/arch/powerpc/kernel/head_fsl_booke.S 2010-02-24 19:52:17.000000000 +0100 +++ linux/arch/powerpc/kernel/head_fsl_booke.S 2010-03-07 09:28:05.000000000 +0100 @@ -887,13 +887,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 */