diff options
| author | uebayasi <uebayasi@NetBSD.org> | 2010-11-13 13:13:33 +0000 |
|---|---|---|
| committer | uebayasi <uebayasi@NetBSD.org> | 2010-11-13 13:13:33 +0000 |
| commit | 12ea663d9843fa5e9ebff284b2daf9f73e62a5f4 (patch) | |
| tree | 29588b30ad5456d9b878b04ff54b21090cb9d222 /sys | |
| parent | e048abfd864e3b67607a001f1366868a324f863f (diff) | |
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 (limited to 'sys')
| -rw-r--r-- | sys/arch/arm/include/cpu.h | 1 | ||||
| -rw-r--r-- | sys/arch/powerpc/include/cpu.h | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/arm/include/cpu.h b/sys/arch/arm/include/cpu.h index d221e37e9fc..d0760b9e52d 100644 --- a/sys/arch/arm/include/cpu.h +++ b/sys/arch/arm/include/cpu.h @@ -229,6 +229,7 @@ static inline void set_curcpl(int); 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 --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h index 120b6324204..bc3e50a6f3d 100644 --- a/sys/arch/powerpc/include/cpu.h +++ b/sys/arch/powerpc/include/cpu.h @@ -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 @@ struct cache_info { #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> |
