/* * Copyright 2010 Tilera Corporation. All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, version 2. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or * NON INFRINGEMENT. See the GNU General Public License for * more details. */ #ifndef _ASM_TILE_TOPOLOGY_H #define _ASM_TILE_TOPOLOGY_H #ifdef CONFIG_NUMA #include <linux/cpumask.h> /* Mappings between logical cpu number and node number. */ extern struct cpumask node_2_cpu_mask[]; extern char cpu_2_node[]; /* Returns the number of the node containing CPU 'cpu'. */
static inline int cpu_to_node(int cpu) { return cpu_2_node[cpu]; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 120 | 99.17% | 1 | 50.00% |
Bartosz Golaszewski | 1 | 0.83% | 1 | 50.00% |
Total | 121 | 100.00% | 2 | 100.00% |