diff options
| author | jdc <jdc@NetBSD.org> | 2011-09-11 14:54:49 +0000 |
|---|---|---|
| committer | jdc <jdc@NetBSD.org> | 2011-09-11 14:54:49 +0000 |
| commit | 572d0fca3eecd8d8d8d3abb3b854afe307f381ac (patch) | |
| tree | 6cc46c5eaeff1c482ceab5f4b5a9451e7f73a412 /sys/kern/kern_cpu.c | |
| parent | 8669fab9cb8ea96efc96a2df535d2a8c141725af (diff) | |
Add a cs_hwid field to cpustate and use this to store the ci_cpuid (hardware
ID). Report this as the HwID in cpuctl.
OK jruoho@.
Diffstat (limited to 'sys/kern/kern_cpu.c')
| -rw-r--r-- | sys/kern/kern_cpu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c index a89776186d4..e3df04296e0 100644 --- a/sys/kern/kern_cpu.c +++ b/sys/kern/kern_cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_cpu.c,v 1.50 2011/08/07 21:38:32 rmind Exp $ */ +/* $NetBSD: kern_cpu.c,v 1.51 2011/09/11 14:54:49 jdc Exp $ */ /*- * Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc. @@ -56,7 +56,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.50 2011/08/07 21:38:32 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.51 2011/09/11 14:54:49 jdc Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -226,6 +226,7 @@ cpuctl_ioctl(dev_t dev, u_long cmd, void *data, int flag, lwp_t *l) cs->cs_lastmodhi = (int32_t) (ci->ci_schedstate.spc_lastmod >> 32); cs->cs_intrcnt = cpu_intr_count(ci) + 1; + cs->cs_hwid = ci->ci_cpuid; break; case IOC_CPU_MAPID: |
