From: Juha Yrjola Date: Fri, 3 Apr 2009 22:53:28 +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=df004e74cbbfdd7ba5a12ad487c7a68cd8d5ee2e;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.