ath9k: optimize register access functions
authorFelix Fietkau <nbd@openwrt.org>
Wed, 14 Mar 2012 15:40:25 +0000 (16:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Mar 2012 17:45:03 +0000 (13:45 -0400)
commitf3eef64521f82330b4b173584d776b8a04b3e795
treeb9f9b9700322951c24f38f978fd76c5ffd2d81e8
parent99ac8cd6ff44e733acdff0d36475dce2d3fe6a6b
ath9k: optimize register access functions

By checking for NR_CPUS, the compiler can optimize out register access
serialization code on non-SMP kernels

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/init.c