forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/drivers/hwmon/fam15h_power.c
....@@ -1,21 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * fam15h_power.c - AMD Family 15h processor power monitoring
34 *
45 * Copyright (c) 2011-2016 Advanced Micro Devices, Inc.
56 * Author: Andreas Herrmann <herrmann.der.user@googlemail.com>
6
- *
7
- *
8
- * This driver is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License; either
10
- * version 2 of the License, or (at your option) any later version.
11
- *
12
- * This driver is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
- * See the GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this driver; if not, see <http://www.gnu.org/licenses/>.
197 */
208
219 #include <linux/err.h>
....@@ -52,10 +40,6 @@
5240
5341 /* set maximum interval as 1 second */
5442 #define MAX_INTERVAL 1000
55
-
56
-#define MSR_F15H_CU_PWR_ACCUMULATOR 0xc001007a
57
-#define MSR_F15H_CU_MAX_PWR_ACCUMULATOR 0xc001007b
58
-#define MSR_F15H_PTSC 0xc0010280
5943
6044 #define PCI_DEVICE_ID_AMD_15H_M70H_NB_F4 0x15b4
6145