/* Call this if system is going to down or if immediate flushing messages to console is required. (ex. recovery was failed, crash dump is going to be invoked, long-wait rendezvous etc.) NOTE: this should be called from monarch.  */
static void ia64_mlogbuf_finish(int wait)
/* Call this if system is going to down or if immediate flushing messages to console is required. (ex. recovery was failed, crash dump is going to be invoked, long-wait rendezvous etc.) NOTE: this should be called from monarch.  */
static void ia64_mlogbuf_finish(int wait)
{
	BREAK_LOGLEVEL(console_loglevel);
	spin_lock_init(&mlogbuf_rlock);
	ia64_mlogbuf_dump();
	printk(KERN_EMERG "mlogbuf_finish: printing switched to urgent mode, "
		"MCA/INIT might be dodgy or fail.\n");
	if (!wait)
		return;
	printk("Delaying for 5 seconds...\n");
	udelay(5*1000000);
	mlogbuf_finished = 1;
}