mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-02 03:44:36 +08:00
rt2x00: Always inline rt2x00pci_enable_interrupt
This allows the compiler to perform the necessary bitfield calculations during compile time instead of run time and thus reduces the number of instructions to run during each tasklet invocation. This should improve performance in the RX hotpath. This comes at the cost of a slight increase in the module size (for example rt2800pci): Before: text data bss dec hex filename 14133 832 4 14969 3a79 drivers/net/wireless/rt2x00/rt2800pci.ko After: text data bss dec hex filename 14149 832 4 14985 3a89 drivers/net/wireless/rt2x00/rt2800pci.ko Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
152a599274
commit
7a5a681a7d
@ -1314,7 +1314,7 @@ static void rt2400pci_txdone(struct rt2x00_dev *rt2x00dev,
|
||||
}
|
||||
}
|
||||
|
||||
static void rt2400pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
static inline void rt2400pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
struct rt2x00_field32 irq_field)
|
||||
{
|
||||
u32 reg;
|
||||
|
@ -1446,7 +1446,7 @@ static void rt2500pci_txdone(struct rt2x00_dev *rt2x00dev,
|
||||
}
|
||||
}
|
||||
|
||||
static void rt2500pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
static inline void rt2500pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
struct rt2x00_field32 irq_field)
|
||||
{
|
||||
u32 reg;
|
||||
|
@ -768,7 +768,7 @@ static bool rt2800pci_txdone(struct rt2x00_dev *rt2x00dev)
|
||||
return !max_tx_done;
|
||||
}
|
||||
|
||||
static void rt2800pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
static inline void rt2800pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
struct rt2x00_field32 irq_field)
|
||||
{
|
||||
u32 reg;
|
||||
|
@ -2260,7 +2260,7 @@ static void rt61pci_wakeup(struct rt2x00_dev *rt2x00dev)
|
||||
rt61pci_config(rt2x00dev, &libconf, IEEE80211_CONF_CHANGE_PS);
|
||||
}
|
||||
|
||||
static void rt61pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
static inline void rt61pci_enable_interrupt(struct rt2x00_dev *rt2x00dev,
|
||||
struct rt2x00_field32 irq_field)
|
||||
{
|
||||
u32 reg;
|
||||
|
Loading…
Reference in New Issue
Block a user