.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc. |
---|
3 | | - * |
---|
4 | | - * Licensed under the terms of the GNU GPL License version 2. |
---|
5 | 4 | * |
---|
6 | 5 | * Based on SandyBridge monitor. Implements the new package C-states |
---|
7 | 6 | * (PC8, PC9, PC10) coming with a specific Haswell (family 0x45) CPU. |
---|
.. | .. |
---|
80 | 79 | break; |
---|
81 | 80 | default: |
---|
82 | 81 | return -1; |
---|
83 | | - }; |
---|
| 82 | + } |
---|
84 | 83 | if (read_msr(cpu, msr, val)) |
---|
85 | 84 | return -1; |
---|
86 | 85 | return 0; |
---|
.. | .. |
---|
188 | 187 | .stop = hsw_ext_stop, |
---|
189 | 188 | .do_register = hsw_ext_register, |
---|
190 | 189 | .unregister = hsw_ext_unregister, |
---|
191 | | - .needs_root = 1, |
---|
| 190 | + .flags.needs_root = 1, |
---|
192 | 191 | .overflow_s = 922000000 /* 922337203 seconds TSC overflow |
---|
193 | 192 | at 20GHz */ |
---|
194 | 193 | }; |
---|