blob: aa32b48f0dad8f04b223924597884b90859d382e [file] [log] [blame]
From c6dafd2110e83a8e34aefcbb7b1cb764f3e9d436 Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Mon, 22 Feb 2010 16:53:27 +0100
Subject: [PATCH] net: mac80211: Make the softirq_count warning nonrt
commit c6dafd2110e83a8e34aefcbb7b1cb764f3e9d436 in tip.
ieee80211_rx() warns about softirq_count() == 0, which is always the
case on RT enabled kernels. Make the warning nonrt only.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 82a30c1..e735c17 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -2464,7 +2464,7 @@ void ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb)
struct ieee80211_supported_band *sband;
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb);
- WARN_ON_ONCE(softirq_count() == 0);
+ WARN_ON_ONCE_NONRT(softirq_count() == 0);
if (WARN_ON(status->band < 0 ||
status->band >= IEEE80211_NUM_BANDS))
--
1.7.1.1