cregit-Linux how code gets into the kernel

Release 4.15 include/linux/arch_topology.h

Directory: include/linux
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * include/linux/arch_topology.h - arch specific cpu topology information
 */
#ifndef _LINUX_ARCH_TOPOLOGY_H_

#define _LINUX_ARCH_TOPOLOGY_H_

#include <linux/types.h>
#include <linux/percpu.h>

void topology_normalize_cpu_scale(void);

struct device_node;
bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu);

DECLARE_PER_CPU(unsigned long, cpu_scale);

struct sched_domain;

static inline unsigned long topology_get_cpu_scale(struct sched_domain *sd, int cpu) { return per_cpu(cpu_scale, cpu); }

Contributors

PersonTokensPropCommitsCommitProp
Dietmar Eggemann1250.00%133.33%
Juri Lelli1250.00%266.67%
Total24100.00%3100.00%

void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity); DECLARE_PER_CPU(unsigned long, freq_scale);
static inline unsigned long topology_get_freq_scale(struct sched_domain *sd, int cpu) { return per_cpu(freq_scale, cpu); }

Contributors

PersonTokensPropCommitsCommitProp
Dietmar Eggemann24100.00%1100.00%
Total24100.00%1100.00%

#endif /* _LINUX_ARCH_TOPOLOGY_H_ */

Overall Contributors

PersonTokensPropCommitsCommitProp
Juri Lelli5749.57%233.33%
Dietmar Eggemann5346.09%233.33%
Viresh Kumar43.48%116.67%
Greg Kroah-Hartman10.87%116.67%
Total115100.00%6100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.