209fd58545
Currently, we expect that only one callback can be active at any given moment, for a particular queue configuration, which is relatively easy to implement in a thread-safe way. However, we're about to add support for multiple queues per lcore, which will greatly increase the possibility of various race conditions. We could have used something like an RCU for this use case, but absent of a pressing need for thread safety we'll go the easy way and just mandate that the API's are to be called when all affected ports are stopped, and document this limitation. This greatly simplifies the `rte_power_monitor`-related code. Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Tested-by: David Hunt <david.hunt@intel.com>
29 lines
690 B
Meson
29 lines
690 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
if not is_linux
|
|
build = false
|
|
reason = 'only supported on Linux'
|
|
endif
|
|
sources = files(
|
|
'guest_channel.c',
|
|
'power_acpi_cpufreq.c',
|
|
'power_common.c',
|
|
'power_cppc_cpufreq.c',
|
|
'power_kvm_vm.c',
|
|
'power_pstate_cpufreq.c',
|
|
'rte_power.c',
|
|
'rte_power_empty_poll.c',
|
|
'rte_power_pmd_mgmt.c',
|
|
)
|
|
headers = files(
|
|
'rte_power.h',
|
|
'rte_power_empty_poll.h',
|
|
'rte_power_pmd_mgmt.h',
|
|
'rte_power_guest_channel.h',
|
|
)
|
|
if cc.has_argument('-Wno-cast-qual')
|
|
cflags += '-Wno-cast-qual'
|
|
endif
|
|
deps += ['timer', 'ethdev']
|