summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/pcpu.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-08-16 09:29:35 +0000
committerobrien <obrien@FreeBSD.org>2001-08-16 09:29:35 +0000
commit358f773cec56d6c2efccc594d09099db6ac1665e (patch)
treefa94197a35ffa007a11c5f91059188205d6476e5 /sys/powerpc/include/pcpu.h
parent6bf1068b6ed1b605de9e06f71dd10f0d8398e421 (diff)
downloadFreeBSD-src-358f773cec56d6c2efccc594d09099db6ac1665e.zip
FreeBSD-src-358f773cec56d6c2efccc594d09099db6ac1665e.tar.gz
style(9) and make consistent across platforms
Diffstat (limited to 'sys/powerpc/include/pcpu.h')
-rw-r--r--sys/powerpc/include/pcpu.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h
index 225349a..b51592a 100644
--- a/sys/powerpc/include/pcpu.h
+++ b/sys/powerpc/include/pcpu.h
@@ -1,5 +1,6 @@
/*-
* Copyright (c) 1999 Luoqi Chen <luoqi@freebsd.org>
+ * Copyright (c) Peter Wemm <peter@netplex.com.au>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -43,27 +44,25 @@
* point at the globaldata structure.
*/
struct globaldata {
- struct proc *gd_curproc; /* current process */
- struct proc *gd_idleproc; /* idle process */
- struct proc *gd_fpcurproc; /* fp state owner */
- struct pcb *gd_curpcb; /* current pcb */
- struct timeval gd_switchtime;
- int gd_switchticks;
- u_int gd_cpuid; /* this cpu number */
- u_int gd_other_cpus; /* all other cpus */
- int gd_inside_intr;
+ struct proc *gd_curproc; /* current process */
+ struct proc *gd_idleproc; /* idle process */
+ struct proc *gd_fpcurproc; /* fp state owner */
+ struct pcb *gd_curpcb; /* current pcb */
+ struct timeval gd_switchtime;
+ int gd_switchticks;
+ u_int gd_cpuid; /* this cpu number */
+ u_int gd_other_cpus; /* all other cpus */
+ int gd_inside_intr;
u_int32_t gd_next_asn; /* next ASN to allocate */
u_int32_t gd_current_asngen; /* ASN rollover check */
u_int32_t gd_intr_nesting_level; /* interrupt recursion */
SLIST_ENTRY(globaldata) gd_allcpu;
- struct lock_list_entry *gd_spinlocks;
+ struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU
-#ifdef KTR
volatile int gd_ktr_idx; /* Index into trace table */
- char *gd_ktr_buf;
- char gd_ktr_buf_data[KTR_SIZE];
-#endif
+ char *gd_ktr_buf;
+ char gd_ktr_buf_data[KTR_SIZE];
#endif
};
OpenPOWER on IntegriCloud