From: Juha Yrjola Date: Fri, 16 Jan 2009 14:00:50 +0000 (+0200) Subject: ARM: Do early I/O mapping if spinlock debugging is enabled X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9a6536c4eb086b43acab99ef3ac8b6e61ed9b7de;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.