[PATCH 0/3 v1] Clean up some stale autotools artifacts
by Joe Konno
From: Joe Konno <joe.konno(a)intel.com>
Sending these patches as a batch, but they are each stand-alone tweaks.
A few years ago I added a script that attempted to compile in a 'git
describe' string into PowerTOP-- it has not performed to my expectations
in the intervening time, so let's just remove it.
Also included in this batch are some autotools cleanups. We have been
lugging around some m4 macros that, I assert, are no longer necessary.
Joe Konno (3):
Revert "configure.ac: version strings from git describe"
configure.ac: required version to 2.69
configure.ac: ax_add_fortify_source
.gitignore | 1 -
Makefile.am | 2 -
autogen.sh | 1 -
configure.ac | 9 +-
m4/ax_cxx_compile_stdcxx_11.m4 | 142 --------------
m4/ax_pthread.m4 | 332 ---------------------------------
m4/gcc_fortify_source_cc.m4 | 29 ---
scripts/version | 13 --
src/display.cpp | 2 +-
9 files changed, 4 insertions(+), 527 deletions(-)
delete mode 100644 m4/ax_cxx_compile_stdcxx_11.m4
delete mode 100644 m4/ax_pthread.m4
delete mode 100644 m4/gcc_fortify_source_cc.m4
delete mode 100644 scripts/version
--
2.25.0
2 years, 2 months
[PATCH] tuningsysfs: use med_power_with_dipm for SATA link power management
by Ross Burton
From: Ross Burton <ross.burton(a)intel.com>
Instead of using min_power, which has reports of data corruption, use
med_power_with_dipm (Device Interface Power Management) available since 4.15.
This has the same behaviour as the Windows IRST driver so both power usage and
stability should be improved.
See https://lore.kernel.org/patchwork/patch/830838/ for more context.
Signed-off-by: Ross Burton <ross.burton(a)intel.com>
---
src/tuning/tuningsysfs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tuning/tuningsysfs.cpp b/src/tuning/tuningsysfs.cpp
index 954f52e..631e9fd 100644
--- a/src/tuning/tuningsysfs.cpp
+++ b/src/tuning/tuningsysfs.cpp
@@ -121,7 +121,7 @@ static void add_sata_tunables_callback(const char *d_name)
snprintf(filename, sizeof(filename), "/sys/class/scsi_host/%s/link_power_management_policy", d_name);
snprintf(msg, sizeof(msg), _("Enable SATA link power management for %s"), d_name);
- add_sysfs_tunable(msg, filename,"min_power");
+ add_sysfs_tunable(msg, filename, "med_power_with_dipm");
}
void add_sata_tunables(void)
--
2.25.1
2 years, 4 months