diff options
author | Chris Metcalf <cmetcalf@ezchip.com> | 2015-07-10 15:37:25 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2015-07-29 09:44:59 -0400 |
commit | 03f6199a359e460714b6bd08c10b566760f150a6 (patch) | |
tree | 71adc3d1afe58a51f80df84152b969d4a6d36df1 /drivers/net/ethernet/tile/tilegx.c | |
parent | 2019e8a3024bd8fcadd57891a88c838849216a5f (diff) |
nohz: Prevent tilegx network driver interrupts
Normally the tilegx networking shim sends irqs to all the cores
to distribute the load of processing incoming-packet interrupts,
so that you can get to multiple Gb's of traffic inbound.
However, in nohz_full mode we don't want to interrupt the
nohz_full cores by default, so we limit the set of cores we use
to only the online housekeeping cores.
To make client code easier to read, we introduce a new nohz_full
accessor, housekeeping_cpumask(), which returns a pointer to the
housekeeping_mask if nohz_full is enabled, and otherwise returns
the cpu_possible_mask.
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'drivers/net/ethernet/tile/tilegx.c')
-rw-r--r-- | drivers/net/ethernet/tile/tilegx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c index a3f7610002aa..0a15acc075b3 100644 --- a/drivers/net/ethernet/tile/tilegx.c +++ b/drivers/net/ethernet/tile/tilegx.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/tcp.h> | 40 | #include <linux/tcp.h> |
41 | #include <linux/net_tstamp.h> | 41 | #include <linux/net_tstamp.h> |
42 | #include <linux/ptp_clock_kernel.h> | 42 | #include <linux/ptp_clock_kernel.h> |
43 | #include <linux/tick.h> | ||
43 | 44 | ||
44 | #include <asm/checksum.h> | 45 | #include <asm/checksum.h> |
45 | #include <asm/homecache.h> | 46 | #include <asm/homecache.h> |
@@ -2273,7 +2274,8 @@ static int __init tile_net_init_module(void) | |||
2273 | tile_net_dev_init(name, mac); | 2274 | tile_net_dev_init(name, mac); |
2274 | 2275 | ||
2275 | if (!network_cpus_init()) | 2276 | if (!network_cpus_init()) |
2276 | network_cpus_map = *cpu_online_mask; | 2277 | cpumask_and(&network_cpus_map, housekeeping_cpumask(), |
2278 | cpu_online_mask); | ||
2277 | 2279 | ||
2278 | return 0; | 2280 | return 0; |
2279 | } | 2281 | } |