cregit-Linux how code gets into the kernel

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

PersonTokensPropCommitsCommitProp
Andi Kleen4788.68%125.00%
Marcelo Tosatti47.55%125.00%
Steven Rostedt11.89%125.00%
Ingo Molnar11.89%125.00%
Total53100.00%4100.00%

long getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *tcache) __attribute__((weak, alias("__vdso_getcpu")));

Overall Contributors

PersonTokensPropCommitsCommitProp
Andi Kleen8593.41%125.00%
Marcelo Tosatti44.40%125.00%
Ingo Molnar11.10%125.00%
Steven Rostedt11.10%125.00%
Total91100.00%4100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.