diff options
author | alc <alc@FreeBSD.org> | 2007-03-11 05:54:29 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-03-11 05:54:29 +0000 |
commit | b03ddb707bfa75419cca3c62c43a52a0e43e11fe (patch) | |
tree | c82f4d045af3dd306e3ada863f05a02bf267342a /sys/sys/pcpu.h | |
parent | be15acebb297e61c62592db36b982bda336df47f (diff) | |
download | FreeBSD-src-b03ddb707bfa75419cca3c62c43a52a0e43e11fe.zip FreeBSD-src-b03ddb707bfa75419cca3c62c43a52a0e43e11fe.tar.gz |
Push down the implementation of PCPU_LAZY_INC() into the machine-dependent
header file. Reimplement PCPU_LAZY_INC() on amd64 and i386 making it
atomic with respect to interrupts.
Reviewed by: bde, jhb
Diffstat (limited to 'sys/sys/pcpu.h')
-rw-r--r-- | sys/sys/pcpu.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h index 7f45042..1e415c3 100644 --- a/sys/sys/pcpu.h +++ b/sys/sys/pcpu.h @@ -88,21 +88,6 @@ extern struct cpuhead cpuhead; #endif /* - * MI PCPU support functions - * - * PCPU_LAZY_INC() - Lazily increment a per-cpu stats counter, without - * guarenteeing atomicity or even necessarily consistency. - * - * XXX we need to create MD primitives to support - * this to guarentee at least some level of consistency, - * i.e., to prevent us from totally corrupting the - * counters due to preemption in a multi-instruction - * increment sequence for architectures that do not - * support single-instruction memory increments. - */ -#define PCPU_LAZY_INC(var) (++*PCPU_PTR(var)) - -/* * Machine dependent callouts. cpu_pcpu_init() is responsible for * initializing machine dependent fields of struct pcpu, and * db_show_mdpcpu() is responsible for handling machine dependent |