]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: Do early I/O mapping if spinlock debugging is enabled
authorJuha Yrjola <juha.yrjola@solidboot.com>
Tue, 7 Apr 2009 23:33:35 +0000 (16:33 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 7 Apr 2009 23:33:35 +0000 (16:33 -0700)
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 <juha.yrjola@solidboot.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/kernel/head.S

index 21e17dc94cb56757f6f25f05b61ba4c2d6e095ca..1bc918cbdb189989878981ae375657b31f0e9b8e 100644 (file)
@@ -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.