summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_rate/sample
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-11-30 21:59:44 +0000
committersam <sam@FreeBSD.org>2008-11-30 21:59:44 +0000
commitef1cb4c265c81ab9fd713aa3fb8231868a6cfdbd (patch)
tree88047736938b68a83d5093e2e7fa586fe7c9fe86 /sys/dev/ath/ath_rate/sample
parent446cd6d4bb1f2cd30810aefb2b04f80e9f5f265f (diff)
downloadFreeBSD-src-ef1cb4c265c81ab9fd713aa3fb8231868a6cfdbd.zip
FreeBSD-src-ef1cb4c265c81ab9fd713aa3fb8231868a6cfdbd.tar.gz
cover up sun4v namespace pollution
Diffstat (limited to 'sys/dev/ath/ath_rate/sample')
-rw-r--r--sys/dev/ath/ath_rate/sample/sample.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c
index 05d4381..15c88db 100644
--- a/sys/dev/ath/ath_rate/sample/sample.c
+++ b/sys/dev/ath/ath_rate/sample/sample.c
@@ -405,6 +405,9 @@ static const struct txschedule series_half[] = {
};
#undef H
+#ifdef Q
+#undef Q /* sun4v bogosity */
+#endif
#define Q(_r) \
(((_r) == 1.5) ? 0 : (((_r) ==2.25) ? 1 : (((_r) == 3) ? 2 : \
(((_r) == 4.5) ? 3 : (((_r) == 6) ? 4 : (((_r) == 9) ? 5 : \
OpenPOWER on IntegriCloud