cregit-Linux how code gets into the kernel

Release 4.14 arch/powerpc/platforms/pseries/offline_states.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _OFFLINE_STATES_H_

#define _OFFLINE_STATES_H_

/* Cpu offline states go here */

enum cpu_state_vals {
	
CPU_STATE_OFFLINE,
	
CPU_STATE_INACTIVE,
	
CPU_STATE_ONLINE,
	
CPU_MAX_OFFLINE_STATES
};

#ifdef CONFIG_HOTPLUG_CPU
extern enum cpu_state_vals get_cpu_current_state(int cpu);
extern void set_cpu_current_state(int cpu, enum cpu_state_vals state);
extern void set_preferred_offline_state(int cpu, enum cpu_state_vals state);
extern void set_default_offline_state(int cpu);
#else

static inline enum cpu_state_vals get_cpu_current_state(int cpu) { return CPU_STATE_ONLINE; }

Contributors

PersonTokensPropCommitsCommitProp
Adam Lackorzynski14100.00%1100.00%
Total14100.00%1100.00%


static inline void set_cpu_current_state(int cpu, enum cpu_state_vals state) { }

Contributors

PersonTokensPropCommitsCommitProp
Adam Lackorzynski13100.00%1100.00%
Total13100.00%1100.00%


static inline void set_preferred_offline_state(int cpu, enum cpu_state_vals state) { }

Contributors

PersonTokensPropCommitsCommitProp
Gautham R. Shenoy969.23%150.00%
Adam Lackorzynski430.77%150.00%
Total13100.00%2100.00%


static inline void set_default_offline_state(int cpu) { }

Contributors

PersonTokensPropCommitsCommitProp
Gautham R. Shenoy666.67%150.00%
Adam Lackorzynski333.33%150.00%
Total9100.00%2100.00%

#endif extern enum cpu_state_vals get_preferred_offline_state(int cpu); #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Gautham R. Shenoy6651.56%133.33%
Adam Lackorzynski6147.66%133.33%
Greg Kroah-Hartman10.78%133.33%
Total128100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.