]> pilppa.com 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>
Fri, 3 Apr 2009 22:53:28 +0000 (15:53 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 3 Apr 2009 22:53:28 +0000 (15:53 -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.