Commit 1fd121dd authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: fix rrk support

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY



--------------------------------

Modify generic routines for SW64 rrk support.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 9bae749e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2167,10 +2167,17 @@ int vprintk_store(int facility, int level,
	u16 text_len;
	int ret = 0;
	u64 ts_nsec;
#ifdef CONFIG_SW64_RRK
	extern int sw64_printk(const char *fmt, va_list args);
#endif

	if (!printk_enter_irqsave(recursion_ptr, irqflags))
		return 0;

#ifdef CONFIG_SW64_RRK
	sw64_printk(fmt, args);
#endif

	/*
	 * Since the duration of printk() can vary depending on the message
	 * and state of the ringbuffer, grab the timestamp now so that it is