mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 09:12:07 +00:00
0f59a6c9c4
Add the ability to detect the presence of libcpupower on a system to the Makefiles in tools/build. Link: https://lore.kernel.org/20241017140914.3200454-2-tglozar@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
9 lines
123 B
C
9 lines
123 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <cpuidle.h>
|
|
|
|
int main(void)
|
|
{
|
|
int rv = cpuidle_state_count(0);
|
|
return rv;
|
|
}
|