summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2005-01-24 10:56:03 +0000
committeragc <agc@pkgsrc.org>2005-01-24 10:56:03 +0000
commit0c59fbbf6410e132aa8f4b65cdc5753646dd3319 (patch)
treec2aef5e3aa8b6285e4137eecc30f68fa699e9be8 /sysutils
parentccb2a17afd6eae211ebbe4169ed5916518e55e57 (diff)
downloadpkgsrc-0c59fbbf6410e132aa8f4b65cdc5753646dd3319.tar.gz
Add rudimentary support for PowerNow processors from Rumi Szabolcs.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/estd/distinfo3
-rw-r--r--sysutils/estd/patches/patch-ab26
2 files changed, 28 insertions, 1 deletions
diff --git a/sysutils/estd/distinfo b/sysutils/estd/distinfo
index 58471f89ca3..758920c7370 100644
--- a/sysutils/estd/distinfo
+++ b/sysutils/estd/distinfo
@@ -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 --git a/sysutils/estd/patches/patch-ab b/sysutils/estd/patches/patch-ab
new file mode 100644
index 00000000000..dfdd5070f08
--- /dev/null
+++ b/sysutils/estd/patches/patch-ab
@@ -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);
+ }