Release 4.14 arch/x86/entry/vdso/vgetcpu.c
/*
* Copyright 2006 Andi Kleen, SUSE Labs.
* Subject to the GNU Public License, v.2
*
* Fast user context implementation of getcpu()
*/
#include <linux/kernel.h>
#include <linux/getcpu.h>
#include <linux/time.h>
#include <asm/vgtod.h>
notrace long
__vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
{
unsigned int p;
p = __getcpu();
if (cpu)
*cpu = p & VGETCPU_CPU_MASK;
if (node)
*node = p >> 12;
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andi Kleen | 47 | 88.68% | 1 | 25.00% |
Marcelo Tosatti | 4 | 7.55% | 1 | 25.00% |
Steven Rostedt | 1 | 1.89% | 1 | 25.00% |
Ingo Molnar | 1 | 1.89% | 1 | 25.00% |
Total | 53 | 100.00% | 4 | 100.00% |
long getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *tcache)
__attribute__((weak, alias("__vdso_getcpu")));
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andi Kleen | 85 | 93.41% | 1 | 25.00% |
Marcelo Tosatti | 4 | 4.40% | 1 | 25.00% |
Ingo Molnar | 1 | 1.10% | 1 | 25.00% |
Steven Rostedt | 1 | 1.10% | 1 | 25.00% |
Total | 91 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.