Now the lcore ID has been verified in framework API, so remove the verification in driver.
Signed-off-by: Huisong Li <[email protected]> --- drivers/power/kvm_vm/kvm_vm.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/power/kvm_vm/kvm_vm.c b/drivers/power/kvm_vm/kvm_vm.c index 133d1f0882..e8b454bb55 100644 --- a/drivers/power/kvm_vm/kvm_vm.c +++ b/drivers/power/kvm_vm/kvm_vm.c @@ -24,11 +24,6 @@ power_kvm_vm_check_supported(void) int power_kvm_vm_init(unsigned int lcore_id) { - if (!rte_lcore_is_eal_managed(lcore_id)) { - POWER_LOG(ERR, "lcore id %u is invalid.", lcore_id); - return -1; - } - pkt[lcore_id].command = RTE_POWER_CPU_POWER; pkt[lcore_id].resource_id = lcore_id; return guest_channel_host_connect(FD_PATH, lcore_id); @@ -73,11 +68,6 @@ send_msg(unsigned int lcore_id, uint32_t scale_direction) { int ret; - if (!rte_lcore_is_eal_managed(lcore_id)) { - POWER_LOG(ERR, "lcore id %u is invalid.", lcore_id); - return -1; - } - pkt[lcore_id].unit = scale_direction; ret = guest_channel_send_msg(&pkt[lcore_id], lcore_id); if (ret == 0) -- 2.33.0

