Use intel_cpu only if APERF MSR is supported, it fixes powertop on KVM
(by intel-cpu-check-aperf patch)
This commit is contained in:
parent
ca7d43bd06
commit
ae9c153da0
@ -1,6 +1,6 @@
|
||||
Name: powertop
|
||||
Version: 2.9
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: Power consumption monitor
|
||||
|
||||
Group: Applications/System
|
||||
@ -14,6 +14,7 @@ Patch0: powertop-2.7-always-create-params.patch
|
||||
Patch1: powertop-2.9-cstates-rewrite-fix.patch
|
||||
Patch2: powertop-2.9-intel-glk-support.patch
|
||||
Patch3: powertop-2.9-intel-cnluy-support.patch
|
||||
Patch4: powertop-2.9-intel-cpu-check-aperf.patch
|
||||
BuildRequires: gettext-devel, ncurses-devel, pciutils-devel, zlib-devel, libnl3-devel
|
||||
BuildRequires: systemd
|
||||
BuildRequires: gcc, gcc-c++
|
||||
@ -35,6 +36,8 @@ computer use more power than necessary while it is idle.
|
||||
%patch2 -p1 -b .intel-glk-support
|
||||
# https://github.com/fenrus75/powertop/commit/0d3a1cda2a95484fa41cc4c35294a4153b3a5e97
|
||||
%patch3 -p1 -b .intel-cnluy-support
|
||||
# sent upstream
|
||||
%patch4 -p1 -b .intel-cpu-check-aperf
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -72,6 +75,10 @@ touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.
|
||||
%{_unitdir}/powertop.service
|
||||
|
||||
%changelog
|
||||
* Fri May 4 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9-8
|
||||
- Use intel_cpu only if APERF MSR is supported, it fixes powertop on KVM
|
||||
(by intel-cpu-check-aperf patch)
|
||||
|
||||
* Fri May 4 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9-7
|
||||
- Added support for Intel GLK platforms (by intel-glk-support patch)
|
||||
- Added support for Intel CNL-U/Y platforms (by intel-cnluy-support patch)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user