freebsd-ports/sysutils/est/files/est.c.diff.fbsd4
Edwin Groothuis 9ce7786b97 [NEW PORT] sysutils/es
This port builds a kernel module providing two sysctls
	(hw.est_freqs, hw.est_curfreq) for controlling Enhanced
	SpeedStep on Intel Pentium M processors.

PR:		71007
Submitted by:	Colin Percival <cperciva@daemonology.net>
2004-08-27 00:13:12 +00:00

27 lines
690 B
Text

--- est.c.orig Thu Aug 26 22:51:42 2004
+++ est.c Thu Aug 26 22:53:59 2004
@@ -33,7 +33,7 @@
#include <sys/sysctl.h>
#include <sys/module.h>
#include <sys/kernel.h>
-#include <sys/pcpu.h>
+#include <sys/proc.h>
typedef struct {
int mhz;
@@ -566,13 +566,13 @@
switch (what) {
case MOD_LOAD:
- err = kernel_sysctlbyname(curthread, "hw.model", hwmodel,
+ err = kernel_sysctlbyname(curproc, "hw.model", hwmodel,
&modellen, NULL, 0, NULL);
if (err)
return err;
ncpulen = sizeof(ncpu);
- err = kernel_sysctlbyname(curthread, "hw.ncpu", &ncpu,
+ err = kernel_sysctlbyname(curproc, "hw.ncpu", &ncpu,
&ncpulen, NULL, 0, NULL);
if (err)
return err;