Contributors: 24
Author Tokens Token Proportion Commits Commit Proportion
Thomas Gleixner 45 18.75% 2 7.14%
Tony Luck 42 17.50% 1 3.57%
Qais Yousef 28 11.67% 3 10.71%
Kirill A. Shutemov 15 6.25% 1 3.57%
Liu Shuo 15 6.25% 1 3.57%
Toshi Kani 13 5.42% 1 3.57%
Waiman Long 12 5.00% 1 3.57%
Rafael J. Wysocki 10 4.17% 1 3.57%
Oleg Nesterov 10 4.17% 1 3.57%
Peter Zijlstra 8 3.33% 1 3.57%
Andrew Morton 5 2.08% 1 3.57%
Patrick Mochel 5 2.08% 1 3.57%
Linus Torvalds (pre-git) 4 1.67% 1 3.57%
Anton Vorontsov 4 1.67% 1 3.57%
Josh Triplett 3 1.25% 1 3.57%
Srivatsa S. Bhat 3 1.25% 1 3.57%
Frédéric Weisbecker 3 1.25% 1 3.57%
Rusty Russell 3 1.25% 2 7.14%
Russell King 3 1.25% 1 3.57%
Josh Poimboeuf 3 1.25% 1 3.57%
Ingo Molnar 2 0.83% 1 3.57%
Christian Krafft 2 0.83% 1 3.57%
Greg Kroah-Hartman 1 0.42% 1 3.57%
Tyler Hicks 1 0.42% 1 3.57%
Total 240 28


/* SPDX-License-Identifier: GPL-2.0 */
/*
 * include/linux/cpuhplock.h - CPU hotplug locking
 *
 * Locking functions for CPU hotplug.
 */
#ifndef _LINUX_CPUHPLOCK_H_
#define _LINUX_CPUHPLOCK_H_

#include <linux/cleanup.h>
#include <linux/errno.h>

struct device;

extern int lockdep_is_cpus_held(void);

#ifdef CONFIG_HOTPLUG_CPU
void cpus_write_lock(void);
void cpus_write_unlock(void);
void cpus_read_lock(void);
void cpus_read_unlock(void);
int  cpus_read_trylock(void);
void lockdep_assert_cpus_held(void);
void cpu_hotplug_disable_offlining(void);
void cpu_hotplug_disable(void);
void cpu_hotplug_enable(void);
void clear_tasks_mm_cpumask(int cpu);
int remove_cpu(unsigned int cpu);
int cpu_device_down(struct device *dev);
void smp_shutdown_nonboot_cpus(unsigned int primary_cpu);

#else /* CONFIG_HOTPLUG_CPU */

static inline void cpus_write_lock(void) { }
static inline void cpus_write_unlock(void) { }
static inline void cpus_read_lock(void) { }
static inline void cpus_read_unlock(void) { }
static inline int  cpus_read_trylock(void) { return true; }
static inline void lockdep_assert_cpus_held(void) { }
static inline void cpu_hotplug_disable_offlining(void) { }
static inline void cpu_hotplug_disable(void) { }
static inline void cpu_hotplug_enable(void) { }
static inline int remove_cpu(unsigned int cpu) { return -EPERM; }
static inline void smp_shutdown_nonboot_cpus(unsigned int primary_cpu) { }
#endif	/* !CONFIG_HOTPLUG_CPU */

DEFINE_LOCK_GUARD_0(cpus_read_lock, cpus_read_lock(), cpus_read_unlock())

#endif /* _LINUX_CPUHPLOCK_H_ */