1 |
commit: efe9c99426cd527b5e9262717be118d2abfaf0dd |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 12 15:56:31 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 14 21:38:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe9c994 |
7 |
|
8 |
sys-power/powertop: remove unused patches/file |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/3936 |
11 |
|
12 |
sys-power/powertop/files/csstoh | 18 --- |
13 |
.../powertop/files/powertop-1.98-build-cc.patch | 28 ---- |
14 |
.../files/powertop-1.98-build-libnl-3.patch | 27 ---- |
15 |
sys-power/powertop/files/powertop-1.98-build.patch | 80 ----------- |
16 |
.../powertop/files/powertop-1.98-gcc-4.7.patch | 151 --------------------- |
17 |
.../powertop-2.2-cpu-add-new-Intel-cpuid.patch | 41 ------ |
18 |
.../files/powertop-2.2-use-package_version.patch | 26 ---- |
19 |
.../powertop/files/powertop-2.7-baytrail-msr.patch | 33 ----- |
20 |
.../powertop/files/powertop-2.7-braswell.patch | 81 ----------- |
21 |
.../powertop/files/powertop-2.7-broadwell.patch | 28 ---- |
22 |
.../powertop/files/powertop-2.7-skylake-2.patch | 37 ----- |
23 |
.../powertop/files/powertop-2.7-skylake.patch | 58 -------- |
24 |
12 files changed, 608 deletions(-) |
25 |
|
26 |
diff --git a/sys-power/powertop/files/csstoh b/sys-power/powertop/files/csstoh |
27 |
deleted file mode 100644 |
28 |
index 51d1ec1372..0000000000 |
29 |
--- a/sys-power/powertop/files/csstoh |
30 |
+++ /dev/null |
31 |
@@ -1,18 +0,0 @@ |
32 |
-#!/bin/sh |
33 |
- |
34 |
-in=$1 |
35 |
-out=$2 |
36 |
- |
37 |
-( |
38 |
-cat <<EOF |
39 |
-#ifndef __INCLUDE_GUARD_CCS_H |
40 |
-#define __INCLUDE_GUARD_CCS_H |
41 |
- |
42 |
-const char css[] = |
43 |
-EOF |
44 |
-sed -e 's:^:\t":' -e 's:$:\\n":' "${in}" |
45 |
-cat <<EOF |
46 |
-; |
47 |
-#endif |
48 |
-EOF |
49 |
-) > "${out}" |
50 |
|
51 |
diff --git a/sys-power/powertop/files/powertop-1.98-build-cc.patch b/sys-power/powertop/files/powertop-1.98-build-cc.patch |
52 |
deleted file mode 100644 |
53 |
index 70beb81db3..0000000000 |
54 |
--- a/sys-power/powertop/files/powertop-1.98-build-cc.patch |
55 |
+++ /dev/null |
56 |
@@ -1,28 +0,0 @@ |
57 |
-From e2a8efc2d349880833215ccbe9ac6cb80cdfe5d0 Mon Sep 17 00:00:00 2001 |
58 |
-From: Mike Frysinger <vapier@g.o> |
59 |
-Date: Tue, 23 Aug 2011 18:03:38 -0400 |
60 |
-Subject: [PATCH] allow control over the build compiler |
61 |
- |
62 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
63 |
---- |
64 |
- Makefile | 3 ++- |
65 |
- 1 files changed, 2 insertions(+), 1 deletions(-) |
66 |
- |
67 |
-diff --git a/Makefile b/Makefile |
68 |
-index f637bfe..75e6e63 100644 |
69 |
---- a/Makefile |
70 |
-+++ b/Makefile |
71 |
-@@ -80,8 +80,9 @@ install: powertop |
72 |
- @(cd po/ && env LOCALESDIR=$(LOCALESDIR) DESTDIR=$(DESTDIR) $(MAKE) $@) |
73 |
- |
74 |
- |
75 |
-+BUILD_CC ?= gcc |
76 |
- csstoh: csstoh.c |
77 |
-- gcc -o csstoh csstoh.c |
78 |
-+ $(BUILD_CC) -o csstoh csstoh.c |
79 |
- |
80 |
- css.h: csstoh powertop.css |
81 |
- ./csstoh powertop.css css.h |
82 |
--- |
83 |
-1.7.6 |
84 |
- |
85 |
|
86 |
diff --git a/sys-power/powertop/files/powertop-1.98-build-libnl-3.patch b/sys-power/powertop/files/powertop-1.98-build-libnl-3.patch |
87 |
deleted file mode 100644 |
88 |
index bbe2b1c857..0000000000 |
89 |
--- a/sys-power/powertop/files/powertop-1.98-build-libnl-3.patch |
90 |
+++ /dev/null |
91 |
@@ -1,27 +0,0 @@ |
92 |
-From 21dcbd03507632c987e8c68b3efcf7b4a5d51147 Mon Sep 17 00:00:00 2001 |
93 |
-From: Mike Frysinger <vapier@g.o> |
94 |
-Date: Wed, 18 Apr 2012 21:11:22 -0400 |
95 |
-Subject: [PATCH] use right libnl pkg-config name |
96 |
- |
97 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
98 |
---- |
99 |
- Makefile | 3 +-- |
100 |
- 1 files changed, 1 insertions(+), 2 deletions(-) |
101 |
- |
102 |
-diff --git a/Makefile b/Makefile |
103 |
-index 94ed2be..8a90b85 100644 |
104 |
---- a/Makefile |
105 |
-+++ b/Makefile |
106 |
-@@ -39,8 +39,7 @@ endif |
107 |
- |
108 |
- ifeq ($(NL3FOUND),Y) |
109 |
- CPPFLAGS += -DCONFIG_LIBNL20 |
110 |
--LIBS += -lnl-genl |
111 |
--NLLIBNAME = libnl-3.0 |
112 |
-+NLLIBNAME = libnl-genl-3.0 |
113 |
- endif |
114 |
- |
115 |
- ifeq ($(NLLIBNAME),) |
116 |
--- |
117 |
-1.7.8.5 |
118 |
- |
119 |
|
120 |
diff --git a/sys-power/powertop/files/powertop-1.98-build.patch b/sys-power/powertop/files/powertop-1.98-build.patch |
121 |
deleted file mode 100644 |
122 |
index 8f130fdace..0000000000 |
123 |
--- a/sys-power/powertop/files/powertop-1.98-build.patch |
124 |
+++ /dev/null |
125 |
@@ -1,80 +0,0 @@ |
126 |
-From cafa47147fdc503103cda1e67e736ab95051e44a Mon Sep 17 00:00:00 2001 |
127 |
-From: Mike Frysinger <vapier@g.o> |
128 |
-Date: Tue, 23 Aug 2011 18:01:36 -0400 |
129 |
-Subject: [PATCH] use right flag names |
130 |
- |
131 |
-CFLAGS for the C compiler, CXXFLAGS for the C++ compiler, and |
132 |
-CPPFLAGS for preprocessor flags. |
133 |
- |
134 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
135 |
---- |
136 |
- Makefile | 20 ++++++++++++-------- |
137 |
- 1 files changed, 12 insertions(+), 8 deletions(-) |
138 |
- |
139 |
-diff --git a/Makefile b/Makefile |
140 |
-index b0b6cb7..bf9b79a 100644 |
141 |
---- a/Makefile |
142 |
-+++ b/Makefile |
143 |
-@@ -2,9 +2,13 @@ all: powertop po/powertop.pot |
144 |
- |
145 |
- VERSION := 1.98 |
146 |
- |
147 |
--CFLAGS += -Wall -O2 -g -fno-omit-frame-pointer -fstack-protector -Wshadow -Wformat -D_FORTIFY_SOURCE=2 |
148 |
--CPPFLAGS += -Wall -O2 -g -fno-omit-frame-pointer |
149 |
--CXXFLAGS += -Wall -O2 -g -fno-omit-frame-pointer -fstack-protector -Wshadow -Wformat -D_FORTIFY_SOURCE=2 |
150 |
-+WFLAGS = -Wall -Wshadow -Wformat |
151 |
-+COMMON_FLAGS = -O2 -g -fno-omit-frame-pointer -fstack-protector |
152 |
-+CFLAGS ?= $(COMMON_FLAGS) |
153 |
-+CFLAGS += $(WFLAGS) |
154 |
-+CXXFLAGS ?= $(COMMON_FLAGS) |
155 |
-+CXXFLAGS += $(WFLAGS) |
156 |
-+CPPFLAGS += -D_FORTIFY_SOURCE=2 |
157 |
- PKG_CONFIG ?= pkg-config |
158 |
- |
159 |
- OBJS := lib.o main.o display.o html.o devlist.o |
160 |
-@@ -31,13 +35,13 @@ NLLIBNAME = libnl-1 |
161 |
- endif |
162 |
- |
163 |
- ifeq ($(NL2FOUND),Y) |
164 |
--CFLAGS += -DCONFIG_LIBNL20 |
165 |
-+CPPFLAGS += -DCONFIG_LIBNL20 |
166 |
- LIBS += -lnl-genl |
167 |
- NLLIBNAME = libnl-2.0 |
168 |
- endif |
169 |
- |
170 |
- ifeq ($(NL3FOUND),Y) |
171 |
--CFLAGS += -DCONFIG_LIBNL20 |
172 |
-+CPPFLAGS += -DCONFIG_LIBNL20 |
173 |
- LIBS += -lnl-genl |
174 |
- NLLIBNAME = libnl-3.0 |
175 |
- endif |
176 |
-@@ -47,7 +51,7 @@ $(error Cannot find development files for any supported version of libnl) |
177 |
- endif |
178 |
- |
179 |
- LIBS += $(shell $(PKG_CONFIG) --libs $(NLLIBNAME)) |
180 |
--CFLAGS += $(shell $(PKG_CONFIG) --cflags $(NLLIBNAME)) |
181 |
-+CPPFLAGS += $(shell $(PKG_CONFIG) --cflags $(NLLIBNAME)) |
182 |
- |
183 |
- |
184 |
- |
185 |
-@@ -70,7 +74,7 @@ clean: |
186 |
- rm -f *.o *~ powertop DEADJOE core.* */*.o */*~ csstoh css.h |
187 |
- |
188 |
- powertop: $(OBJS) $(HEADERS) |
189 |
-- $(CXX) $(OBJS) $(LIBS) -o powertop |
190 |
-+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o powertop |
191 |
- @(cd po/ && $(MAKE)) |
192 |
- |
193 |
- install: powertop |
194 |
-@@ -90,7 +94,7 @@ css.h: csstoh powertop.css |
195 |
- %.o: %.cpp lib.h css.h Makefile |
196 |
- @echo " CC $<" |
197 |
- @[ -x /usr/bin/cppcheck ] && /usr/bin/cppcheck -q $< || : |
198 |
-- @$(CC) $(CFLAGS) -c -o $@ $< |
199 |
-+ @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $< |
200 |
- |
201 |
- |
202 |
- uptrans: |
203 |
--- |
204 |
-1.7.8.5 |
205 |
- |
206 |
|
207 |
diff --git a/sys-power/powertop/files/powertop-1.98-gcc-4.7.patch b/sys-power/powertop/files/powertop-1.98-gcc-4.7.patch |
208 |
deleted file mode 100644 |
209 |
index 78d2d70e5e..0000000000 |
210 |
--- a/sys-power/powertop/files/powertop-1.98-gcc-4.7.patch |
211 |
+++ /dev/null |
212 |
@@ -1,151 +0,0 @@ |
213 |
-From b86877fb2f24563d74cd3faf7eceffcc8fa59299 Mon Sep 17 00:00:00 2001 |
214 |
-From: Han Shen <shenhan@××××××××.org> |
215 |
-Date: Thu, 19 Apr 2012 12:14:08 -0400 |
216 |
-Subject: [PATCH] include unistd.h when necessary |
217 |
- |
218 |
-Older versions of gcc (pre-4.7) would implicitly include unistd.h in some |
219 |
-of its internal headers. With newer versions though, that is no longer |
220 |
-the case, so building powertop breaks with files that use things from the |
221 |
-unistd.h header but don't include it explicitly. |
222 |
- |
223 |
-Signed-off-by: Han Shen <shenhan@××××××××.org> |
224 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
225 |
---- |
226 |
- cpu/intel_cpus.cpp | 1 + |
227 |
- devices/alsa.cpp | 2 +- |
228 |
- devices/device.cpp | 1 + |
229 |
- devices/i915-gpu.cpp | 2 +- |
230 |
- devices/network.cpp | 1 + |
231 |
- devices/rfkill.cpp | 2 +- |
232 |
- devices/thinkpad-fan.cpp | 1 + |
233 |
- devices/thinkpad-light.cpp | 1 + |
234 |
- html.cpp | 1 + |
235 |
- main.cpp | 1 + |
236 |
- 10 files changed, 10 insertions(+), 3 deletions(-) |
237 |
- |
238 |
-diff --git a/cpu/intel_cpus.cpp b/cpu/intel_cpus.cpp |
239 |
-index f42f3b4..bbbd460 100644 |
240 |
---- a/cpu/intel_cpus.cpp |
241 |
-+++ b/cpu/intel_cpus.cpp |
242 |
-@@ -34,6 +34,7 @@ |
243 |
- #include <sys/time.h> |
244 |
- #include <string.h> |
245 |
- #include <errno.h> |
246 |
-+#include <unistd.h> |
247 |
- |
248 |
- #include "../lib.h" |
249 |
- #include "../parameters/parameters.h" |
250 |
-diff --git a/devices/alsa.cpp b/devices/alsa.cpp |
251 |
-index b0bcd3f..5100c36 100644 |
252 |
---- a/devices/alsa.cpp |
253 |
-+++ b/devices/alsa.cpp |
254 |
-@@ -39,7 +39,7 @@ using namespace std; |
255 |
- #include "../devlist.h" |
256 |
- |
257 |
- #include <string.h> |
258 |
-- |
259 |
-+#include <unistd.h> |
260 |
- |
261 |
- alsa::alsa(char *_name, char *path): device() |
262 |
- { |
263 |
-diff --git a/devices/device.cpp b/devices/device.cpp |
264 |
-index c38b96c..9ce4509 100644 |
265 |
---- a/devices/device.cpp |
266 |
-+++ b/devices/device.cpp |
267 |
-@@ -29,6 +29,7 @@ |
268 |
- #include <stdio.h> |
269 |
- #include <limits.h> |
270 |
- #include <stdlib.h> |
271 |
-+#include <unistd.h> |
272 |
- |
273 |
- using namespace std; |
274 |
- |
275 |
-diff --git a/devices/i915-gpu.cpp b/devices/i915-gpu.cpp |
276 |
-index a9dc899..ca2dad1 100644 |
277 |
---- a/devices/i915-gpu.cpp |
278 |
-+++ b/devices/i915-gpu.cpp |
279 |
-@@ -28,7 +28,7 @@ |
280 |
- #include <stdio.h> |
281 |
- #include <sys/types.h> |
282 |
- #include <dirent.h> |
283 |
-- |
284 |
-+#include <unistd.h> |
285 |
- |
286 |
- using namespace std; |
287 |
- |
288 |
-diff --git a/devices/network.cpp b/devices/network.cpp |
289 |
-index 5f3ddf2..72c766d 100644 |
290 |
---- a/devices/network.cpp |
291 |
-+++ b/devices/network.cpp |
292 |
-@@ -33,6 +33,7 @@ |
293 |
- #include <dirent.h> |
294 |
- #include <libgen.h> |
295 |
- #include <stdlib.h> |
296 |
-+#include <unistd.h> |
297 |
- |
298 |
- #include <linux/ethtool.h> |
299 |
- |
300 |
-diff --git a/devices/rfkill.cpp b/devices/rfkill.cpp |
301 |
-index 5bf40c4..33a8fcd 100644 |
302 |
---- a/devices/rfkill.cpp |
303 |
-+++ b/devices/rfkill.cpp |
304 |
-@@ -29,7 +29,7 @@ |
305 |
- #include <sys/types.h> |
306 |
- #include <dirent.h> |
307 |
- #include <libgen.h> |
308 |
-- |
309 |
-+#include <unistd.h> |
310 |
- |
311 |
- using namespace std; |
312 |
- |
313 |
-diff --git a/devices/thinkpad-fan.cpp b/devices/thinkpad-fan.cpp |
314 |
-index 4ac3d11..8750c6e 100644 |
315 |
---- a/devices/thinkpad-fan.cpp |
316 |
-+++ b/devices/thinkpad-fan.cpp |
317 |
-@@ -29,6 +29,7 @@ |
318 |
- #include <sys/types.h> |
319 |
- #include <dirent.h> |
320 |
- #include <math.h> |
321 |
-+#include <unistd.h> |
322 |
- |
323 |
- #include "../lib.h" |
324 |
- |
325 |
-diff --git a/devices/thinkpad-light.cpp b/devices/thinkpad-light.cpp |
326 |
-index ba4c553..7e91637 100644 |
327 |
---- a/devices/thinkpad-light.cpp |
328 |
-+++ b/devices/thinkpad-light.cpp |
329 |
-@@ -29,6 +29,7 @@ |
330 |
- #include <sys/types.h> |
331 |
- #include <dirent.h> |
332 |
- #include <math.h> |
333 |
-+#include <unistd.h> |
334 |
- |
335 |
- #include "../lib.h" |
336 |
- |
337 |
-diff --git a/html.cpp b/html.cpp |
338 |
-index 0a4db2e..8260ed5 100644 |
339 |
---- a/html.cpp |
340 |
-+++ b/html.cpp |
341 |
-@@ -29,6 +29,7 @@ |
342 |
- #include <utility> |
343 |
- #include <iostream> |
344 |
- #include <fstream> |
345 |
-+#include <unistd.h> |
346 |
- |
347 |
- #include "css.h" |
348 |
- #include "lib.h" |
349 |
-diff --git a/main.cpp b/main.cpp |
350 |
-index 45a126e..0bbb4aa 100644 |
351 |
---- a/main.cpp |
352 |
-+++ b/main.cpp |
353 |
-@@ -33,6 +33,7 @@ |
354 |
- #include <time.h> |
355 |
- #include <sys/stat.h> |
356 |
- #include <getopt.h> |
357 |
-+#include <unistd.h> |
358 |
- |
359 |
- #include "cpu/cpu.h" |
360 |
- #include "process/process.h" |
361 |
--- |
362 |
-1.7.8.5 |
363 |
- |
364 |
|
365 |
diff --git a/sys-power/powertop/files/powertop-2.2-cpu-add-new-Intel-cpuid.patch b/sys-power/powertop/files/powertop-2.2-cpu-add-new-Intel-cpuid.patch |
366 |
deleted file mode 100644 |
367 |
index 04f17a3b5e..0000000000 |
368 |
--- a/sys-power/powertop/files/powertop-2.2-cpu-add-new-Intel-cpuid.patch |
369 |
+++ /dev/null |
370 |
@@ -1,41 +0,0 @@ |
371 |
-From 6626761dec9b3d1e3053d214913f329ed27c468c Mon Sep 17 00:00:00 2001 |
372 |
-From: Kristen Carlson Accardi <kristen@×××××××××××.com> |
373 |
-Date: Tue, 19 Mar 2013 16:45:47 -0700 |
374 |
-Subject: [PATCH] cpu: add new Intel cpuid |
375 |
- |
376 |
-update cpu to support next generation Intel core processor |
377 |
---- |
378 |
- src/cpu/cpu.cpp | 3 +++ |
379 |
- 1 file changed, 3 insertions(+) |
380 |
- |
381 |
-diff --git a/src/cpu/cpu.cpp b/src/cpu/cpu.cpp |
382 |
-index 1eb340c..afe6a8c 100644 |
383 |
---- a/src/cpu/cpu.cpp |
384 |
-+++ b/src/cpu/cpu.cpp |
385 |
-@@ -78,6 +78,7 @@ static class abstract_cpu * new_package(int package, int cpu, char * vendor, int |
386 |
- case 0x3A: /* IVB */ |
387 |
- case 0x3C: |
388 |
- case 0x3D: /* IVB Xeon */ |
389 |
-+ case 0x45: /* Next Gen Intel Core Processor */ |
390 |
- has_c2c7_res = 1; |
391 |
- ret = new class nhm_package; |
392 |
- break; |
393 |
-@@ -116,6 +117,7 @@ static class abstract_cpu * new_core(int core, int cpu, char * vendor, int famil |
394 |
- case 0x3A: /* IVB */ |
395 |
- case 0x3C: |
396 |
- case 0x3D: /* IVB Xeon */ |
397 |
-+ case 0x45: /* Next Gen Intel Core Processor */ |
398 |
- ret = new class nhm_core; |
399 |
- } |
400 |
- } |
401 |
-@@ -159,6 +161,7 @@ static class abstract_cpu * new_cpu(int number, char * vendor, int family, int m |
402 |
- case 0x3A: /* IVB */ |
403 |
- case 0x3C: |
404 |
- case 0x3D: /* IVB Xeon */ |
405 |
-+ case 0x45: /* Next Gen Intel Core Processor */ |
406 |
- ret = new class nhm_cpu; |
407 |
- } |
408 |
- } |
409 |
--- |
410 |
-1.8.1.2 |
411 |
- |
412 |
|
413 |
diff --git a/sys-power/powertop/files/powertop-2.2-use-package_version.patch b/sys-power/powertop/files/powertop-2.2-use-package_version.patch |
414 |
deleted file mode 100644 |
415 |
index f4ec6c3ed0..0000000000 |
416 |
--- a/sys-power/powertop/files/powertop-2.2-use-package_version.patch |
417 |
+++ /dev/null |
418 |
@@ -1,26 +0,0 @@ |
419 |
-It was missed to update POWERTOP_VERSION macro so that the |
420 |
-new v2.2 release still shows v2.1 string on the header of |
421 |
-ncurses window. Convert to use PACKAGE_VERSION macro which |
422 |
-set by autotools to the AC_INIT version so that it cannot |
423 |
-be missed anymore. |
424 |
- |
425 |
-Signed-off-by: Namhyung Kim <namhyung at gmail.com> |
426 |
---- |
427 |
- src/lib.h | 4 ++-- |
428 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
429 |
- |
430 |
-diff --git a/src/lib.h b/src/lib.h |
431 |
-index 8cf4632..209421a 100644 |
432 |
---- a/src/lib.h |
433 |
-+++ b/src/lib.h |
434 |
-@@ -35,8 +35,8 @@ |
435 |
- |
436 |
- #define _(STRING) gettext(STRING) |
437 |
- |
438 |
--#define POWERTOP_VERSION "v2.1" |
439 |
--#define POWERTOP_SHORT_VERSION "2.1" |
440 |
-+#define POWERTOP_VERSION "v"PACKAGE_VERSION |
441 |
-+#define POWERTOP_SHORT_VERSION PACKAGE_VERSION |
442 |
- |
443 |
- |
444 |
- extern int get_max_cpu(void); |
445 |
|
446 |
diff --git a/sys-power/powertop/files/powertop-2.7-baytrail-msr.patch b/sys-power/powertop/files/powertop-2.7-baytrail-msr.patch |
447 |
deleted file mode 100644 |
448 |
index 9c4c17b3f8..0000000000 |
449 |
--- a/sys-power/powertop/files/powertop-2.7-baytrail-msr.patch |
450 |
+++ /dev/null |
451 |
@@ -1,33 +0,0 @@ |
452 |
-From 037906c55374cbf045f197b43c22314617dbfc21 Mon Sep 17 00:00:00 2001 |
453 |
-From: Daniel Leung <daniel.leung@×××××××××××.com> |
454 |
-Date: Wed, 25 Feb 2015 16:36:45 -0800 |
455 |
-Subject: [PATCH] Baytrail does not have core C7 MSR to read |
456 |
- |
457 |
-So do not acquire core C7 from MSR, or else it fails |
458 |
-and stops the program. |
459 |
- |
460 |
-Reported-by: Eoff, Ullysses A <ullysses.a.eoff@×××××.com> |
461 |
-Signed-off-by: Daniel Leung <daniel.leung@×××××××××××.com> |
462 |
---- |
463 |
- src/cpu/intel_cpus.cpp | 5 ----- |
464 |
- 1 file changed, 5 deletions(-) |
465 |
- |
466 |
-diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp |
467 |
-index 04275e5..72ecd50 100644 |
468 |
---- a/src/cpu/intel_cpus.cpp |
469 |
-+++ b/src/cpu/intel_cpus.cpp |
470 |
-@@ -135,11 +135,6 @@ nhm_core::nhm_core(int model) |
471 |
- if (model == 0x37) { |
472 |
- has_c3_res = 0; |
473 |
- has_c1_res = 1; |
474 |
-- this->byt_has_ahci(); |
475 |
-- if ((this->get_byt_ahci_support()) == 0) |
476 |
-- has_c7_res = 1;/*BYT-T PC7 <- S0iX*/ |
477 |
-- else |
478 |
-- has_c7_res = 0; |
479 |
- } else { |
480 |
- has_c3_res = 1; |
481 |
- has_c1_res = 0; |
482 |
--- |
483 |
-2.3.1 |
484 |
- |
485 |
|
486 |
diff --git a/sys-power/powertop/files/powertop-2.7-braswell.patch b/sys-power/powertop/files/powertop-2.7-braswell.patch |
487 |
deleted file mode 100644 |
488 |
index cabbed44ed..0000000000 |
489 |
--- a/sys-power/powertop/files/powertop-2.7-braswell.patch |
490 |
+++ /dev/null |
491 |
@@ -1,81 +0,0 @@ |
492 |
-From 1c60f2342b752149f3d6543c63fee11a167dc998 Mon Sep 17 00:00:00 2001 |
493 |
-From: "David E. Box" <david.e.box@×××××××××××.com> |
494 |
-Date: Thu, 2 Apr 2015 21:24:29 -0700 |
495 |
-Subject: [PATCH] Fix Powertop support for Intel Braswell SOC |
496 |
- |
497 |
-Correct Braswell MSR used to determine PC6 residency. |
498 |
- |
499 |
-Signed-off-by: David E. Box <david.e.box@×××××××××××.com> |
500 |
---- |
501 |
- src/cpu/intel_cpus.cpp | 21 +++++++++++++++++++-- |
502 |
- src/cpu/intel_cpus.h | 1 + |
503 |
- 2 files changed, 20 insertions(+), 2 deletions(-) |
504 |
- |
505 |
-diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp |
506 |
-index d96cb49..1f3647a 100644 |
507 |
---- a/src/cpu/intel_cpus.cpp |
508 |
-+++ b/src/cpu/intel_cpus.cpp |
509 |
-@@ -289,6 +289,7 @@ nhm_package::nhm_package(int model) |
510 |
- has_c8c9c10_res = 0; |
511 |
- has_c2c6_res = 0; |
512 |
- has_c7_res = 0; |
513 |
-+ has_c6c_res = 0; |
514 |
- |
515 |
- switch(model) { |
516 |
- case 0x2A: /* SNB */ |
517 |
-@@ -314,6 +315,9 @@ nhm_package::nhm_package(int model) |
518 |
- else |
519 |
- has_c7_res = 0; |
520 |
- } |
521 |
-+ /* BSW only exposes package C6 */ |
522 |
-+ else if (model == 0x4C) |
523 |
-+ has_c6c_res = 1; |
524 |
- else |
525 |
- has_c3_res = 1; |
526 |
- |
527 |
-@@ -360,7 +364,15 @@ void nhm_package::measurement_start(void) |
528 |
- |
529 |
- if (this->has_c3_res) |
530 |
- c3_before = get_msr(number, MSR_PKG_C3_RESIDENCY); |
531 |
-- c6_before = get_msr(number, MSR_PKG_C6_RESIDENCY); |
532 |
-+ |
533 |
-+ /* |
534 |
-+ * Hack for Braswell where C7 MSR is actually BSW C6 |
535 |
-+ */ |
536 |
-+ if (this->has_c6c_res) |
537 |
-+ c6_before = get_msr(number, MSR_PKG_C7_RESIDENCY); |
538 |
-+ else |
539 |
-+ c6_before = get_msr(number, MSR_PKG_C6_RESIDENCY); |
540 |
-+ |
541 |
- if (this->has_c7_res) |
542 |
- c7_before = get_msr(number, MSR_PKG_C7_RESIDENCY); |
543 |
- if (this->has_c8c9c10_res) { |
544 |
-@@ -401,7 +413,12 @@ void nhm_package::measurement_end(void) |
545 |
- |
546 |
- if (this->has_c3_res) |
547 |
- c3_after = get_msr(number, MSR_PKG_C3_RESIDENCY); |
548 |
-- c6_after = get_msr(number, MSR_PKG_C6_RESIDENCY); |
549 |
-+ |
550 |
-+ if (this->has_c6c_res) |
551 |
-+ c6_after = get_msr(number, MSR_PKG_C7_RESIDENCY); |
552 |
-+ else |
553 |
-+ c6_after = get_msr(number, MSR_PKG_C6_RESIDENCY); |
554 |
-+ |
555 |
- if (this->has_c7_res) |
556 |
- c7_after = get_msr(number, MSR_PKG_C7_RESIDENCY); |
557 |
- if (has_c8c9c10_res) { |
558 |
-diff --git a/src/cpu/intel_cpus.h b/src/cpu/intel_cpus.h |
559 |
-index 810a243..0331069 100644 |
560 |
---- a/src/cpu/intel_cpus.h |
561 |
-+++ b/src/cpu/intel_cpus.h |
562 |
-@@ -77,6 +77,7 @@ public: |
563 |
- int has_c7_res; |
564 |
- int has_c2c6_res; |
565 |
- int has_c3_res; |
566 |
-+ int has_c6c_res; /* BSW */ |
567 |
- int has_c8c9c10_res; |
568 |
- nhm_package(int model); |
569 |
- virtual void measurement_start(void); |
570 |
--- |
571 |
-2.4.4 |
572 |
- |
573 |
|
574 |
diff --git a/sys-power/powertop/files/powertop-2.7-broadwell.patch b/sys-power/powertop/files/powertop-2.7-broadwell.patch |
575 |
deleted file mode 100644 |
576 |
index 7a1ed6f1ff..0000000000 |
577 |
--- a/sys-power/powertop/files/powertop-2.7-broadwell.patch |
578 |
+++ /dev/null |
579 |
@@ -1,28 +0,0 @@ |
580 |
-From 60258e6149a420b45521201e02f39cf41839e081 Mon Sep 17 00:00:00 2001 |
581 |
-From: Alexandra Yates <alexandra.yates@×××××××××××.com> |
582 |
-Date: Wed, 22 Oct 2014 06:57:10 -0700 |
583 |
-Subject: [PATCH] Enable PowerTOP support for: BSW, BDW-H |
584 |
- |
585 |
-Added PowerTOP support for BSW and BDW-H platforms. |
586 |
- |
587 |
-Signed-off-by: Alexandra Yates <alexandra.yates@×××××××××××.com> |
588 |
---- |
589 |
- src/cpu/intel_cpus.cpp | 2 ++ |
590 |
- 1 file changed, 2 insertions(+) |
591 |
- |
592 |
-diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp |
593 |
-index 167f1a7..d307aa1 100644 |
594 |
---- a/src/cpu/intel_cpus.cpp |
595 |
-+++ b/src/cpu/intel_cpus.cpp |
596 |
-@@ -59,6 +59,8 @@ static int intel_cpu_models[] = { |
597 |
- 0x3D, /* Intel Next Generation */ |
598 |
- 0x3F, /* HSX */ |
599 |
- 0x46, /* HSW */ |
600 |
-+ 0x47, /* BDW-H */ |
601 |
-+ 0x4C, /* BSW */ |
602 |
- 0x4D, /* AVN */ |
603 |
- 0x4F, /* BDX */ |
604 |
- 0x56, /* BDX-DE */ |
605 |
--- |
606 |
-2.4.4 |
607 |
- |
608 |
|
609 |
diff --git a/sys-power/powertop/files/powertop-2.7-skylake-2.patch b/sys-power/powertop/files/powertop-2.7-skylake-2.patch |
610 |
deleted file mode 100644 |
611 |
index be5f0a3789..0000000000 |
612 |
--- a/sys-power/powertop/files/powertop-2.7-skylake-2.patch |
613 |
+++ /dev/null |
614 |
@@ -1,37 +0,0 @@ |
615 |
-From a7ddbd00f84253da38acc393e38f1c4db4263864 Mon Sep 17 00:00:00 2001 |
616 |
-From: Alexandra Yates <alexandra.yates@×××××××××××.com> |
617 |
-Date: Thu, 16 Apr 2015 14:36:29 -0700 |
618 |
-Subject: [PATCH] Add C7- C10 support for Intel SKY |
619 |
- |
620 |
-Add C7 to C10 support for Intel SKY for CPU idle. |
621 |
- |
622 |
-Signed-off-by: Alexandra Yates <alexandra.yates@×××××××××××.com> |
623 |
---- |
624 |
- src/cpu/intel_cpus.cpp | 4 ++-- |
625 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
626 |
- |
627 |
-diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp |
628 |
-index 72ecd50..d96cb49 100644 |
629 |
---- a/src/cpu/intel_cpus.cpp |
630 |
-+++ b/src/cpu/intel_cpus.cpp |
631 |
-@@ -63,7 +63,7 @@ static int intel_cpu_models[] = { |
632 |
- 0x4C, /* BSW */ |
633 |
- 0x4D, /* AVN */ |
634 |
- 0x4F, /* BDX */ |
635 |
-- 0x4E, /* Intel Next Generation */ |
636 |
-+ 0x4E, /* SKY */ |
637 |
- 0x56, /* BDX-DE */ |
638 |
- 0 /* last entry must be zero */ |
639 |
- }; |
640 |
-@@ -318,7 +318,7 @@ nhm_package::nhm_package(int model) |
641 |
- has_c3_res = 1; |
642 |
- |
643 |
- /* Haswell-ULT has C8/9/10*/ |
644 |
-- if (model == 0x45 || model ==0x3D) |
645 |
-+ if (model == 0x45 || model == 0x3D || model == 0x4E) |
646 |
- has_c8c9c10_res = 1; |
647 |
- } |
648 |
- |
649 |
--- |
650 |
-2.4.4 |
651 |
- |
652 |
|
653 |
diff --git a/sys-power/powertop/files/powertop-2.7-skylake.patch b/sys-power/powertop/files/powertop-2.7-skylake.patch |
654 |
deleted file mode 100644 |
655 |
index 50781dd246..0000000000 |
656 |
--- a/sys-power/powertop/files/powertop-2.7-skylake.patch |
657 |
+++ /dev/null |
658 |
@@ -1,58 +0,0 @@ |
659 |
-From 761e87f1ccd3b5364b5518d7e29f4b7b8a6b8490 Mon Sep 17 00:00:00 2001 |
660 |
-From: Alexandra Yates <alexandra.yates@×××××××××××.com> |
661 |
-Date: Wed, 21 Jan 2015 16:55:59 -0800 |
662 |
-Subject: [PATCH] Adding support to SKY platforms. |
663 |
- |
664 |
-Adding Intel SKY platform support to PowerTOP |
665 |
- |
666 |
-Signed-off-by: Alexandra Yates <alexandra.yates@×××××××××××.com> |
667 |
---- |
668 |
- src/cpu/intel_cpus.cpp | 9 ++++++--- |
669 |
- 1 file changed, 6 insertions(+), 3 deletions(-) |
670 |
- |
671 |
-diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp |
672 |
-index d307aa1..04275e5 100644 |
673 |
---- a/src/cpu/intel_cpus.cpp |
674 |
-+++ b/src/cpu/intel_cpus.cpp |
675 |
-@@ -51,18 +51,19 @@ static int intel_cpu_models[] = { |
676 |
- 0x2C, /* Westmere */ |
677 |
- 0x2A, /* SNB */ |
678 |
- 0x2D, /* SNB Xeon */ |
679 |
-+ 0x37, /* BYT-M */ |
680 |
- 0x3A, /* IVB */ |
681 |
- 0x3C, |
682 |
-+ 0x3D, /* Broadwell */ |
683 |
- 0x3E, /* IVB Xeon */ |
684 |
-- 0x37, /* BYT-M */ |
685 |
-- 0x45, /* HSW-ULT */ |
686 |
-- 0x3D, /* Intel Next Generation */ |
687 |
- 0x3F, /* HSX */ |
688 |
-+ 0x45, /* HSW-ULT */ |
689 |
- 0x46, /* HSW */ |
690 |
- 0x47, /* BDW-H */ |
691 |
- 0x4C, /* BSW */ |
692 |
- 0x4D, /* AVN */ |
693 |
- 0x4F, /* BDX */ |
694 |
-+ 0x4E, /* Intel Next Generation */ |
695 |
- 0x56, /* BDX-DE */ |
696 |
- 0 /* last entry must be zero */ |
697 |
- }; |
698 |
-@@ -125,6 +126,7 @@ nhm_core::nhm_core(int model) |
699 |
- case 0x3C: |
700 |
- case 0x3E: /* IVB Xeon */ |
701 |
- case 0x45: /* HSW-ULT */ |
702 |
-+ case 0x4E: /* SKY */ |
703 |
- case 0x3D: /* Intel Next Generation */ |
704 |
- has_c7_res = 1; |
705 |
- } |
706 |
-@@ -300,6 +302,7 @@ nhm_package::nhm_package(int model) |
707 |
- case 0x3C: |
708 |
- case 0x3E: /* IVB Xeon */ |
709 |
- case 0x45: /* HSW-ULT */ |
710 |
-+ case 0x4E: /* SKY */ |
711 |
- case 0x3D: /* Intel Next Generation */ |
712 |
- has_c2c6_res=1; |
713 |
- has_c7_res = 1; |
714 |
--- |
715 |
-2.4.4 |
716 |
- |