cregit-Linux how code gets into the kernel

Release 4.14 arch/arm64/kernel/cpuidle.c

/*
 * ARM64 CPU idle arch support
 *
 * Copyright (C) 2014 ARM Ltd.
 * Author: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
 *
 * 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.
 */

#include <linux/acpi.h>
#include <linux/cpuidle.h>
#include <linux/cpu_pm.h>
#include <linux/of.h>
#include <linux/of_device.h>

#include <asm/cpuidle.h>
#include <asm/cpu_ops.h>


int arm_cpuidle_init(unsigned int cpu) { int ret = -EOPNOTSUPP; if (cpu_ops[cpu] && cpu_ops[cpu]->cpu_suspend && cpu_ops[cpu]->cpu_init_idle) ret = cpu_ops[cpu]->cpu_init_idle(cpu); return ret; }

Contributors

PersonTokensPropCommitsCommitProp
Lorenzo Pieralisi4384.31%133.33%
JiSheng Zhang713.73%133.33%
Daniel Lezcano11.96%133.33%
Total51100.00%3100.00%

/** * arm_cpuidle_suspend() - function to enter a low-power idle state * @arg: argument to pass to CPU suspend operations * * Return: 0 on success, -EOPNOTSUPP if CPU suspend hook not initialized, CPU * operations back-end error code otherwise. */
int arm_cpuidle_suspend(int index) { int cpu = smp_processor_id(); return cpu_ops[cpu]->cpu_suspend(index); }

Contributors

PersonTokensPropCommitsCommitProp
Lorenzo Pieralisi2184.00%150.00%
Sudeep Holla416.00%150.00%
Total25100.00%2100.00%

#ifdef CONFIG_ACPI #include <acpi/processor.h>
int acpi_processor_ffh_lpi_probe(unsigned int cpu) { return arm_cpuidle_init(cpu); }

Contributors

PersonTokensPropCommitsCommitProp
Sudeep Holla15100.00%1100.00%
Total15100.00%1100.00%


int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi) { return CPU_PM_CPU_IDLE_ENTER(arm_cpuidle_suspend, lpi->index); }

Contributors

PersonTokensPropCommitsCommitProp
Sudeep Holla20100.00%1100.00%
Total20100.00%1100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Lorenzo Pieralisi7754.23%228.57%
Sudeep Holla5639.44%228.57%
JiSheng Zhang74.93%114.29%
Daniel Lezcano10.70%114.29%
Geert Uytterhoeven10.70%114.29%
Total142100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.