mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-13 17:34:12 +00:00
implement arch_send_reschedule_request for riscv, it calls send_single_ipi to kick cpu. Tracked-On: #8812 Signed-off-by: Haicheng Li <haicheng.li@linux.intel.com> Signed-off-by: Xue Bosheng <bosheng.xue@intel.com> Reviewed-by: Yifan Liu <yifan1.liu@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
29 lines
564 B
C
29 lines
564 B
C
/*
|
|
* Copyright (C) 2023-2025 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
* Authors:
|
|
* Haicheng Li <haicheng.li@intel.com>
|
|
*/
|
|
|
|
#include <types.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/sbi.h>
|
|
#include <schedule.h>
|
|
|
|
void arch_init_smp_call(void)
|
|
{
|
|
/* No special handling is required at present; this can be extended in the future if needed. */
|
|
}
|
|
|
|
void arch_smp_call_kick_pcpu(uint16_t pcpu_id)
|
|
{
|
|
send_single_ipi(pcpu_id, IPI_NOTIFY_CPU);
|
|
}
|
|
|
|
void arch_send_reschedule_request(uint16_t pcpu_id)
|
|
{
|
|
send_single_ipi(pcpu_id, IPI_NOTIFY_CPU);
|
|
}
|