Commit 7e923d1a authored by Wang Yicheng's avatar Wang Yicheng Committed by guzitao
Browse files

sw64: fix compilation issues

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR



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

Current code causes a compilation error when the CONFIG_PM is not
selected. This commit modifies the relevant code logic to fix this
issue.

Signed-off-by: default avatarWang Yicheng <wangyicheng@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 052cc794
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include <linux/seq_file.h>
#include <linux/clk.h>
#include <linux/cpufreq.h>
#include <asm/cpu.h>

struct clk;

+2 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ asmlinkage void do_entInt(unsigned long type, unsigned long vector,
		nmi_enter();
	old_regs = set_irq_regs(regs);

#ifdef CONFIG_PM
	if (is_junzhang_v1()) {
		if (pme_state == PME_WFW) {
			pme_state = PME_PENDING;
@@ -102,6 +103,7 @@ asmlinkage void do_entInt(unsigned long type, unsigned long vector,
			pme_state = PME_CLEAR;
		}
	}
#endif

	if (is_guest_or_emul()) {
		if ((type & 0xffff) > 15) {