]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
microblaze: Report if only one timer is used
authorMichal Simek <monstr@monstr.eu>
Fri, 6 Aug 2010 12:13:13 +0000 (14:13 +0200)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:30 +0000 (15:51 +1000)
Kernel needs two timers because of clocksource and clockevent.
It is better to show warning message directly on early
console if available. If it isn't available kernel log buffer
contains it.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/setup.h
arch/microblaze/kernel/setup.c
arch/microblaze/kernel/timer.c

index 782b5c89248e1f5222a83192f1608ce110adedcc..5f910ebe032598afe0c664b24afe3a9537681413 100644 (file)
@@ -25,6 +25,12 @@ void early_printk(const char *fmt, ...);
 int setup_early_printk(char *opt);
 void disable_early_printk(void);
 
+#if defined(CONFIG_EARLY_PRINTK) && defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
+#define eprintk early_printk
+#else
+#define eprintk printk
+#endif
+
 void heartbeat(void);
 void setup_heartbeat(void);
 
index f5f768842354201266bf0dce0e7209484f49a4fa..bb1558e4b283f0d59f2a00bb2976427c521c845d 100644 (file)
@@ -92,12 +92,6 @@ inline unsigned get_romfs_len(unsigned *addr)
 }
 #endif /* CONFIG_MTD_UCLINUX_EBSS */
 
-#if defined(CONFIG_EARLY_PRINTK) && defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
-#define eprintk early_printk
-#else
-#define eprintk printk
-#endif
-
 void __init machine_early_init(const char *cmdline, unsigned int ram,
                unsigned int fdt, unsigned int msr)
 {
index b1380ae93ae13ae8bf43f4993cdd18351d5de505..ec7df67006ba02d1729e632c8a4a56bf2f48a11d 100644 (file)
@@ -278,7 +278,7 @@ void __init time_init(void)
        timer_num =
                *(int *) of_get_property(timer, "xlnx,one-timer-only", NULL);
        if (timer_num) {
-               printk(KERN_EMERG "Please enable two timers in HW\n");
+               eprintk(KERN_EMERG "Please enable two timers in HW\n");
                BUG();
        }