File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ FEATURE_TESTS_BASIC := \
53
53
libslang-include-subdir \
54
54
libtraceevent \
55
55
libtracefs \
56
+ libcpupower \
56
57
libcrypto \
57
58
libunwind \
58
59
pthread-attr-setaffinity-np \
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ FILES= \
38
38
test-libslang.bin \
39
39
test-libslang-include-subdir.bin \
40
40
test-libtraceevent.bin \
41
+ test-libcpupower.bin \
41
42
test-libtracefs.bin \
42
43
test-libcrypto.bin \
43
44
test-libunwind.bin \
@@ -245,6 +246,9 @@ $(OUTPUT)test-libslang-include-subdir.bin:
245
246
$(OUTPUT ) test-libtraceevent.bin :
246
247
$(BUILD ) -ltraceevent
247
248
249
+ $(OUTPUT ) test-libcpupower.bin :
250
+ $(BUILD ) -lcpupower
251
+
248
252
$(OUTPUT ) test-libtracefs.bin :
249
253
$(BUILD ) $(shell $(PKG_CONFIG ) --cflags libtracefs 2>/dev/null) -ltracefs
250
254
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: GPL-2.0
2
+ #include <cpuidle.h>
3
+
4
+ int main (void )
5
+ {
6
+ int rv = cpuidle_state_count (0 );
7
+ return rv ;
8
+ }
You can’t perform that action at this time.
0 commit comments