From 82ca73740088101f5eef6390a3cd00c4b8d6425f Mon Sep 17 00:00:00 2001 From: Xue Bosheng Date: Mon, 8 Sep 2025 10:01:37 +0800 Subject: [PATCH] hv: move schedule source code out of x86 macro schedule.c and sched_noop are common module instead of x86 specific, so move them out of x86 macro, and need set SCHEDULER to be SCHED_NOOP in scenario file for riscv build. Tracked-On: #8812 Signed-off-by: Xue Bosheng Acked-by: Wang, Yu1 --- hypervisor/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hypervisor/Makefile b/hypervisor/Makefile index 9b93fddb0..d6f282d8d 100644 --- a/hypervisor/Makefile +++ b/hypervisor/Makefile @@ -158,6 +158,10 @@ COMMON_C_SRCS += common/delay.c COMMON_C_SRCS += common/timer.c COMMON_C_SRCS += common/softirq.c COMMON_C_SRCS += common/trace.c +COMMON_C_SRCS += common/schedule.c +ifeq ($(CONFIG_SCHED_NOOP),y) +COMMON_C_SRCS += common/sched_noop.c +endif # library componment COMMON_C_SRCS += lib/string.c @@ -173,7 +177,6 @@ endif ifeq ($(ARCH),x86) COMMON_C_SRCS += common/irq.c -COMMON_C_SRCS += common/schedule.c COMMON_C_SRCS += common/event.c COMMON_C_SRCS += common/efi_mmap.c COMMON_C_SRCS += common/sbuf.c @@ -200,9 +203,6 @@ COMMON_C_SRCS += dm/vpci/vsriov.c COMMON_C_SRCS += dm/vpci/vmcs9900.c COMMON_C_SRCS += dm/mmio_dev.c COMMON_C_SRCS += dm/vgpio.c -ifeq ($(CONFIG_SCHED_NOOP),y) -COMMON_C_SRCS += common/sched_noop.c -endif ifeq ($(CONFIG_SCHED_IORR),y) COMMON_C_SRCS += common/sched_iorr.c endif