From: Juha Yrjola Date: Wed, 8 Apr 2009 00:04:53 +0000 (-0700) Subject: ARM: Do early I/O mapping if spinlock debugging is enabled X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a48f410a0a5a6c47cdfda35af49ea0e5aafb7745;p=linux-2.6-omap-h63xx.git ARM: Do early I/O mapping if spinlock debugging is enabled At least on OMAP, sched_clock() requires the I/O maps to be initialized. Spinlock debugging invokes sched_clock() very early. Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 21e17dc94cb..1bc918cbdb1 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S @@ -282,7 +282,7 @@ __create_page_tables: .endif str r6, [r0] -#ifdef CONFIG_DEBUG_LL +#if defined(CONFIG_DEBUG_LL) || defined(CONFIG_DEBUG_SPINLOCK) ldr r7, [r10, #PROCINFO_IO_MMUFLAGS] @ io_mmuflags /* * Map in IO space for serial debugging.