diff options
author | Amir Vadai <amirv@mellanox.com> | 2014-06-09 11:24:38 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-12 01:58:16 +0400 |
commit | da91309e0a7e8966d916a74cce42ed170fde06bf (patch) | |
tree | 71bb5b4da988abb97d1a696c2f64bf39ecf9ae0d /drivers/edac | |
parent | d4f3862017f9aaa1a6b6bade396a99a4b77e2cb2 (diff) | |
download | linux-da91309e0a7e8966d916a74cce42ed170fde06bf.tar.xz |
cpumask: Utility function to set n'th cpu - local cpu first
This function sets the n'th cpu - local cpu's first.
For example: in a 16 cores server with even cpu's local, will get the
following values:
cpumask_set_cpu_local_first(0, numa, cpumask) => cpu 0 is set
cpumask_set_cpu_local_first(1, numa, cpumask) => cpu 2 is set
...
cpumask_set_cpu_local_first(7, numa, cpumask) => cpu 14 is set
cpumask_set_cpu_local_first(8, numa, cpumask) => cpu 1 is set
cpumask_set_cpu_local_first(9, numa, cpumask) => cpu 3 is set
...
cpumask_set_cpu_local_first(15, numa, cpumask) => cpu 15 is set
Curently this function will be used by multi queue networking devices to
calculate the irq affinity mask, such that as many local cpu's as
possible will be utilized to handle the mq device irq's.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions