/* * Based on arch/arm/kernel/time.c * * Copyright (C) 1991, 1992, 1995 Linus Torvalds * Modifications for ARM (C) 1994-2001 Russell King * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * 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. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <linux/clockchips.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/interrupt.h> #include <linux/time.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/smp.h> #include <linux/timex.h> #include <linux/errno.h> #include <linux/profile.h> #include <linux/syscore_ops.h> #include <linux/timer.h> #include <linux/irq.h> #include <linux/delay.h> #include <linux/clocksource.h> #include <linux/clk-provider.h> #include <linux/acpi.h> #include <clocksource/arm_arch_timer.h> #include <asm/thread_info.h> #include <asm/stacktrace.h>
unsigned long profile_pc(struct pt_regs *regs) { struct stackframe frame; if (!in_lock_functions(regs->pc)) return regs->pc; frame.fp = regs->regs[29]; frame.pc = regs->pc; #ifdef CONFIG_FUNCTION_GRAPH_TRACER frame.graph = -1; /* no task info */ #endif do { int ret = unwind_frame(NULL, &frame); if (ret < 0) return 0; } while (in_lock_functions(frame.pc)); return frame.pc; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Marc Zyngier | 85 | 85.00% | 1 | 33.33% |
AKASHI Takahiro | 15 | 15.00% | 2 | 66.67% |
Total | 100 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Mark Rutland | 18 | 40.91% | 1 | 16.67% |
Rob Herring | 9 | 20.45% | 1 | 16.67% |
Marc Zyngier | 8 | 18.18% | 1 | 16.67% |
Chanho Min | 5 | 11.36% | 1 | 16.67% |
Lorenzo Pieralisi | 3 | 6.82% | 1 | 16.67% |
Daniel Lezcano | 1 | 2.27% | 1 | 16.67% |
Total | 44 | 100.00% | 6 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Marc Zyngier | 146 | 68.54% | 1 | 11.11% |
Mark Rutland | 22 | 10.33% | 1 | 11.11% |
AKASHI Takahiro | 15 | 7.04% | 2 | 22.22% |
Rob Herring | 12 | 5.63% | 1 | 11.11% |
Chanho Min | 8 | 3.76% | 1 | 11.11% |
Lorenzo Pieralisi | 6 | 2.82% | 1 | 11.11% |
Hanjun Guo | 3 | 1.41% | 1 | 11.11% |
Daniel Lezcano | 1 | 0.47% | 1 | 11.11% |
Total | 213 | 100.00% | 9 | 100.00% |