aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/pcpu.h
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2016-08-09 21:45:47 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2016-08-09 21:45:47 +0000
commit650b96935c3ea17335e9fbec64ccb6e93cd33bcf (patch)
tree6461890ca3649be9c0b358ad02f068292fc0f16f /sys/sys/pcpu.h
parent616dac55ef56851b7295b4eff5f8a8b6bd1efc3b (diff)
downloadsrc-650b96935c3ea17335e9fbec64ccb6e93cd33bcf.tar.gz
src-650b96935c3ea17335e9fbec64ccb6e93cd33bcf.zip
sys/pcpu.h: Revert change introduced in r303890
`device_t` is not defined outside the kernel but this header is used by eg. libkvm or vmstat(8). Thus, r303890 broke the build. So let's restore `struct device` here until a longer term solution is found. Reported by: Michael Butler <imb@protected-networks.net>, Jenkins MFC after: 3 days MFC with: r303890
Notes
Notes: svn path=/head/; revision=303895
Diffstat (limited to 'sys/sys/pcpu.h')
-rw-r--r--sys/sys/pcpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
index 8e6a71a8c1ea..d6d1b3d82c7b 100644
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -160,7 +160,7 @@ struct pcpu {
struct lock_list_entry *pc_spinlocks;
struct vmmeter pc_cnt; /* VM stats counters */
long pc_cp_time[CPUSTATES]; /* statclock ticks */
- device_t pc_device;
+ struct device *pc_device;
void *pc_netisr; /* netisr SWI cookie */
int pc_unused1; /* unused field */
int pc_domain; /* Memory domain. */