aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-02-08 20:31:42 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-02-08 20:31:42 +0000
commitcc43a851d25c942e24193e41aabc26208826f384 (patch)
treeabb6b7995319484efdf7ea41ba66f289b0c56d77 /etc
parentc0ae88db3a5cb36ff103a060dc39a83170fa54fd (diff)
downloadsrc-cc43a851d25c942e24193e41aabc26208826f384.tar.gz
src-cc43a851d25c942e24193e41aabc26208826f384.zip
Revert r211288 and move the logic to the acpi_timer itself.
Notes
Notes: svn path=/head/; revision=231226
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.resume6
-rwxr-xr-xetc/rc.suspend12
2 files changed, 0 insertions, 18 deletions
diff --git a/etc/rc.resume b/etc/rc.resume
index 3b2e9706643c..b68f9819f64c 100755
--- a/etc/rc.resume
+++ b/etc/rc.resume
@@ -43,12 +43,6 @@ if [ -r /var/run/rc.suspend.pid ]; then
echo 'rc.resume: killed rc.suspend that was still around'
fi
-if [ -r /var/run/rc.suspend.tch ]; then
- _t=`cat /var/run/rc.suspend.tch`
- /sbin/sysctl -n kern.timecounter.hardware=$_t > /dev/null 2>&1
- /bin/rm -f /var/run/rc.suspend.tch
-fi
-
if [ -r /var/run/moused.pid ]; then
pkill -HUP -F /var/run/moused.pid
fi
diff --git a/etc/rc.suspend b/etc/rc.suspend
index 90c085b8acf2..5f22cd1a05b1 100755
--- a/etc/rc.suspend
+++ b/etc/rc.suspend
@@ -43,18 +43,6 @@ fi
echo $$ 2> /dev/null > /var/run/rc.suspend.pid
-_t=`/sbin/sysctl -n kern.timecounter.hardware 2> /dev/null`
-case ${_t#ACPI-} in
-fast|safe)
- /bin/rm -f /var/run/rc.suspend.tch
- ;;
-*)
- { /sbin/sysctl -n kern.timecounter.hardware=ACPI-fast || \
- /sbin/sysctl -n kern.timecounter.hardware=ACPI-safe; } \
- > /dev/null 2>&1 && echo $_t > /var/run/rc.suspend.tch
- ;;
-esac
-
# If you have troubles on suspending with PC-CARD modem, try this.
# See also contrib/pccardq.c (Only for PAO users).
# pccardq | awk -F '~' '$5 == "filled" && $4 ~ /uart/ \