hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
....@@ -1,8 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc
3
- *
4
- * Licensed under the terms of the GNU GPL License version 2.
5
- *
64 */
75
86 #include <stdio.h>
....@@ -55,7 +53,7 @@
5553 dprint("CPU %d - State: %d - Val: %llu\n",
5654 cpu, state, previous_count[cpu][state]);
5755 }
58
- };
56
+ }
5957 return 0;
6058 }
6159
....@@ -74,7 +72,7 @@
7472 dprint("CPU %d - State: %d - Val: %llu\n",
7573 cpu, state, previous_count[cpu][state]);
7674 }
77
- };
75
+ }
7876 return 0;
7977 }
8078
....@@ -174,7 +172,7 @@
174172 cpuidle_cstates[num].id = num;
175173 cpuidle_cstates[num].get_count_percent =
176174 cpuidle_get_count_percent;
177
- };
175
+ }
178176
179177 /* Free this at program termination */
180178 previous_count = malloc(sizeof(long long *) * cpu_count);
....@@ -209,6 +207,6 @@
209207 .stop = cpuidle_stop,
210208 .do_register = cpuidle_register,
211209 .unregister = cpuidle_unregister,
212
- .needs_root = 0,
210
+ .flags.needs_root = 0,
213211 .overflow_s = UINT_MAX,
214212 };