Commit 69717607 authored by Michal Simek's avatar Michal Simek

microblaze: Report if only one timer is used

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: default avatarMichal Simek <monstr@monstr.eu>
parent 7d432095
...@@ -25,6 +25,12 @@ void early_printk(const char *fmt, ...); ...@@ -25,6 +25,12 @@ void early_printk(const char *fmt, ...);
int setup_early_printk(char *opt); int setup_early_printk(char *opt);
void disable_early_printk(void); 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 heartbeat(void);
void setup_heartbeat(void); void setup_heartbeat(void);
......
...@@ -92,12 +92,6 @@ inline unsigned get_romfs_len(unsigned *addr) ...@@ -92,12 +92,6 @@ inline unsigned get_romfs_len(unsigned *addr)
} }
#endif /* CONFIG_MTD_UCLINUX_EBSS */ #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, void __init machine_early_init(const char *cmdline, unsigned int ram,
unsigned int fdt, unsigned int msr) unsigned int fdt, unsigned int msr)
{ {
......
...@@ -278,7 +278,7 @@ void __init time_init(void) ...@@ -278,7 +278,7 @@ void __init time_init(void)
timer_num = timer_num =
*(int *) of_get_property(timer, "xlnx,one-timer-only", NULL); *(int *) of_get_property(timer, "xlnx,one-timer-only", NULL);
if (timer_num) { if (timer_num) {
printk(KERN_EMERG "Please enable two timers in HW\n"); eprintk(KERN_EMERG "Please enable two timers in HW\n");
BUG(); BUG();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment