From 9a1fc51fafbf862c26a32750ef333cf485902cea Mon Sep 17 00:00:00 2001 From: Sameer Nanda Date: Tue, 26 Feb 2013 11:55:45 -0800 Subject: [PATCH] temp_metrics: use iotools wrmsr instead of wrmsr Use the "iotools wrmsr" command instead of the wrmsr alias since iotools ebuild no longer installs the symlinks by default. BUG=chromium-os:39180 TEST=On a Pixel issue "sudo start temp_metrics" and check /var/log/messages to ensure that no new messages such as "init: temp_metrics main process ended, respawning" show up. BRANCH=none Change-Id: I46cd8770c7e6c1af1affe8e2100033a29b9a90bb Signed-off-by: Sameer Nanda Reviewed-on: https://gerrit.chromium.org/gerrit/44073 Reviewed-by: Luigi Semenzato Reviewed-by: Mike Frysinger --- util/temp_metrics.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/temp_metrics.conf b/util/temp_metrics.conf index 394425c1f7..307938d019 100644 --- a/util/temp_metrics.conf +++ b/util/temp_metrics.conf @@ -158,13 +158,13 @@ script set_duty_cycle() { duty_cycle=$1 for i in 0 1 2 3; do - wrmsr $i 0x19a $duty_cycle + iotools wrmsr $i 0x19a $duty_cycle done } set_pkg_power_limit() { pwr_limit=$1 - wrmsr 0 0x610 $pwr_limit + iotools wrmsr 0 0x610 $pwr_limit } log_message() { @@ -193,7 +193,7 @@ script thermal_loop() { # Hack to reset turbo activation threshold since BIOS can change it # underneath us. - wrmsr 0 0x64c 0x12 + iotools wrmsr 0 0x64c 0x12 skin_temp=$1 if [ $skin_temp -gt $TEMP_THRESHOLD_3 ]; then