Date: Sun, 07 Oct 2012 15:17:30 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: freebsd-hackers <freebsd-hackers@FreeBSD.org> Subject: machine/cpu.h in userland Message-ID: <507172DA.2020309@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
I noticed that couple of our userland file include machine/cpu.h for no apparent
good reason. It looks like at least amd64 cpu.h has no userland serviceable
parts inside.
Maybe its content should be put under _KERNEL ?
Also:
--- a/sbin/adjkerntz/adjkerntz.c
+++ b/sbin/adjkerntz/adjkerntz.c
@@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$");
#include <syslog.h>
#include <sys/time.h>
#include <sys/param.h>
-#include <machine/cpu.h>
#include <sys/sysctl.h>
#include "pathnames.h"
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 8441ce5..9674fc2 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -57,7 +57,6 @@ static const char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94";
#include <sys/socket.h>
#include <sys/tty.h>
-#include <machine/cpu.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
--
Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?507172DA.2020309>
