[PATCH 4/4] net: tile: don't send interrupts to nohz cores by default

From: cmetcalf
Date: Tue Mar 24 2015 - 15:22:56 EST


From: Chris Metcalf <cmetcalf@xxxxxxxxxx>

Signed-off-by: Chris Metcalf <cmetcalf@xxxxxxxxxx>
---
drivers/net/ethernet/tile/tilegx.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c
index bea8cd2bb56c..cf9850c6a809 100644
--- a/drivers/net/ethernet/tile/tilegx.c
+++ b/drivers/net/ethernet/tile/tilegx.c
@@ -40,6 +40,7 @@
#include <linux/tcp.h>
#include <linux/net_tstamp.h>
#include <linux/ptp_clock_kernel.h>
+#include <linux/tick.h>

#include <asm/checksum.h>
#include <asm/homecache.h>
@@ -2271,8 +2272,10 @@ static int __init tile_net_init_module(void)
for (i = 0; gxio_mpipe_link_enumerate_mac(i, name, mac) >= 0; i++)
tile_net_dev_init(name, mac);

- if (!network_cpus_init())
+ if (!network_cpus_init()) {
network_cpus_map = *cpu_online_mask;
+ tick_nohz_full_clear_cpus(&network_cpus_map);
+ }

return 0;
}
--
2.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/