cregit-Linux how code gets into the kernel

Release 4.14 arch/alpha/include/asm/topology.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_ALPHA_TOPOLOGY_H

#define _ASM_ALPHA_TOPOLOGY_H

#include <linux/smp.h>
#include <linux/threads.h>
#include <asm/machvec.h>

#ifdef CONFIG_NUMA

static inline int cpu_to_node(int cpu) { int node; if (!alpha_mv.cpuid_to_nid) return 0; node = alpha_mv.cpuid_to_nid(cpu); #ifdef DEBUG_NUMA BUG_ON(node < 0); #endif return node; }

Contributors

PersonTokensPropCommitsCommitProp
Ivan Kokshaysky4391.49%133.33%
Andrew Morton48.51%266.67%
Total47100.00%3100.00%

extern struct cpumask node_to_cpumask_map[]; /* FIXME: This is dumb, recalculating every time. But simple. */
static const struct cpumask *cpumask_of_node(int node) { int cpu; if (node == -1) return cpu_all_mask; cpumask_clear(&node_to_cpumask_map[node]); for_each_online_cpu(cpu) { if (cpu_to_node(cpu) == node) cpumask_set_cpu(cpu, node_to_cpumask_map[node]); } return &node_to_cpumask_map[node]; }

Contributors

PersonTokensPropCommitsCommitProp
Rusty Russell5684.85%150.00%
Anton Blanchard1015.15%150.00%
Total66100.00%2100.00%

#define cpumask_of_pcibus(bus) (cpu_online_mask) #endif /* !CONFIG_NUMA */ # include <asm-generic/topology.h> #endif /* _ASM_ALPHA_TOPOLOGY_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Rusty Russell7045.16%110.00%
Ivan Kokshaysky5434.84%110.00%
Andrew Morton149.03%440.00%
Anton Blanchard106.45%110.00%
Richard Henderson31.94%110.00%
Mike Travis31.94%110.00%
Greg Kroah-Hartman10.65%110.00%
Total155100.00%10100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.