Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Include sys/device_if.h instead of sys/device.h. m...



details:   https://anonhg.NetBSD.org/src/rev/9a716b9e4e60
branches:  trunk
changeset: 758704:9a716b9e4e60
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sat Nov 13 13:13:33 2010 +0000

description:
Include sys/device_if.h instead of sys/device.h.  machine/cpu.h is
one of the lower-most definitions.  Relying on the huge sys/device.h
is not a good idea.

diffstat:

 sys/arch/arm/include/cpu.h     |  1 +
 sys/arch/powerpc/include/cpu.h |  5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 8d0e42d1dec4 -r 9a716b9e4e60 sys/arch/arm/include/cpu.h
--- a/sys/arch/arm/include/cpu.h        Sat Nov 13 12:50:09 2010 +0000
+++ b/sys/arch/arm/include/cpu.h        Sat Nov 13 13:13:33 2010 +0000
@@ -229,6 +229,7 @@
 static inline void cpu_dosoftints(void);
 #endif
 
+#include <sys/device_if.h>
 #include <sys/evcnt.h>
 #include <sys/cpu_data.h>
 struct cpu_info {
diff -r 8d0e42d1dec4 -r 9a716b9e4e60 sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h    Sat Nov 13 12:50:09 2010 +0000
+++ b/sys/arch/powerpc/include/cpu.h    Sat Nov 13 13:13:33 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.71 2010/10/20 18:52:33 phx Exp $     */
+/*     $NetBSD: cpu.h,v 1.72 2010/11/13 13:13:34 uebayasi Exp $        */
 
 /*
  * Copyright (C) 1999 Wolfgang Solfrank.
@@ -52,7 +52,8 @@
 #include <machine/frame.h>
 #include <machine/psl.h>
 #include <machine/intr.h>
-#include <sys/device.h>
+#include <sys/device_if.h>
+#include <sys/evcnt.h>
 
 #include <sys/cpu_data.h>
 



Home | Main Index | Thread Index | Old Index