/* * Copyright (C) 2018-2022 Intel Corporation. * * SPDX-License-Identifier: BSD-3-Clause * * Authors: * Haicheng Li * */ #include #include /* wait until *sync == wake_sync */ void wait_sync_change(volatile const uint64_t *sync, uint64_t wake_sync) { while ((*sync) != wake_sync) { cpu_relax(); } } uint16_t arch_get_pcpu_num(void) { return NR_CPUS; }