]> 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, 16 Jan 2009 14:00:50 +0000 (16:00 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 16 Jan 2009 14:29:26 +0000 (16:29 +0200)
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.