cregit-Linux how code gets into the kernel

Release 4.16 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
Juri Lelli1250.00%266.67%
Dietmar Eggemann1250.00%133.33%
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(int cpu) { return per_cpu(freq_scale, cpu); }

Contributors

PersonTokensPropCommitsCommitProp
Dietmar Eggemann19100.00%1100.00%
Total19100.00%1100.00%

#endif /* _LINUX_ARCH_TOPOLOGY_H_ */

Overall Contributors

PersonTokensPropCommitsCommitProp
Juri Lelli5751.82%233.33%
Dietmar Eggemann4843.64%233.33%
Viresh Kumar43.64%116.67%
Greg Kroah-Hartman10.91%116.67%
Total110100.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.