pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/estd Add rudimentary support for PowerNow pro...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8ea32069b02b
branches: trunk
changeset: 488041:8ea32069b02b
user: agc <agc%pkgsrc.org@localhost>
date: Mon Jan 24 10:56:03 2005 +0000
description:
Add rudimentary support for PowerNow processors from Rumi Szabolcs.
diffstat:
sysutils/estd/distinfo | 3 ++-
sysutils/estd/patches/patch-ab | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 7ec43d003744 -r 8ea32069b02b sysutils/estd/distinfo
--- a/sysutils/estd/distinfo Mon Jan 24 10:52:42 2005 +0000
+++ b/sysutils/estd/distinfo Mon Jan 24 10:56:03 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/01/24 10:50:53 agc Exp $
+$NetBSD: distinfo,v 1.2 2005/01/24 10:56:03 agc Exp $
SHA1 (estd-netbsd-r3.tar.gz) = f46b7d0f7f3a4ab898139b515ee92433dd39fbaf
Size (estd-netbsd-r3.tar.gz) = 5675 bytes
SHA1 (patch-aa) = 974aa3749c4ab2fa969f14f241285b2326f4fb35
+SHA1 (patch-ab) = f18f4c3f7ec5ce8c87b186ffa1e3a8ae9636698d
diff -r 7ec43d003744 -r 8ea32069b02b sysutils/estd/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/estd/patches/patch-ab Mon Jan 24 10:56:03 2005 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1 2005/01/24 10:56:03 agc Exp $
+
+--- estd.c.orig 2004-07-22 16:03:58.000000000 +0200
++++ estd.c 2005-01-16 15:07:56.000000000 +0100
+@@ -110,7 +110,9 @@
+ {
+ if ((!daemonize) && (verbose))
+ printf("%i MHz\n", freq);
+- if (sysctlbyname("machdep.est.frequency.target", NULL, NULL, &freq, sizeof(freq)) < 0) {
++ if ((sysctlbyname("machdep.est.frequency.target", NULL, NULL, &freq, sizeof(freq)) < 0)
++ && (sysctlbyname("machdep.powernow.frequency.target", NULL, NULL, &freq, sizeof(freq)) < 0))
++ {
+ printf("estd: Cannot set CPU frequency (maybe you aren't root?)\n");
+ exit(1);
+ }
+@@ -191,7 +193,9 @@
+ }
+
+ /* get supported frequencies... */
+- if (sysctlbyname("machdep.est.frequency.available", &frequencies, &freqsize, NULL, 0) < 0) {
++ if ((sysctlbyname("machdep.est.frequency.available", &frequencies, &freqsize, NULL, 0) < 0)
++ && (sysctlbyname("machdep.powernow.frequency.available", &frequencies, &freqsize, NULL, 0) < 0))
++ {
+ printf("estd: Cannot get supported frequencies (maybe SpeedStep is not included in your kernel-config?)\n");
+ exit(1);
+ }
Home |
Main Index |
Thread Index |
Old Index