mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
Add the ability to detect the presence of libcpupower on a system to the Makefiles in tools/build. Link: https://lore.kernel.org/[email protected] Signed-off-by: Tomas Glozar <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
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;
|
|
}
|