forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
....@@ -1,7 +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.
54 *
65 * Based on SandyBridge monitor. Implements the new package C-states
76 * (PC8, PC9, PC10) coming with a specific Haswell (family 0x45) CPU.
....@@ -80,7 +79,7 @@
8079 break;
8180 default:
8281 return -1;
83
- };
82
+ }
8483 if (read_msr(cpu, msr, val))
8584 return -1;
8685 return 0;
....@@ -188,7 +187,7 @@
188187 .stop = hsw_ext_stop,
189188 .do_register = hsw_ext_register,
190189 .unregister = hsw_ext_unregister,
191
- .needs_root = 1,
190
+ .flags.needs_root = 1,
192191 .overflow_s = 922000000 /* 922337203 seconds TSC overflow
193192 at 20GHz */
194193 };