From: Juha Yrjola Date: Tue, 7 Apr 2009 23:33:35 +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=4bec62825b94dcfe7b9156fdc5af9381134b2bf8;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.