Release 4.14 arch/mips/include/asm/smp-ops.h
/*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file "COPYING" in the main directory of this
* archive for more details.
*
* Copyright (C) 2000 - 2001 by Kanoj Sarcar (kanoj@sgi.com)
* Copyright (C) 2000 - 2001 by Silicon Graphics, Inc.
* Copyright (C) 2000, 2001, 2002 Ralf Baechle
* Copyright (C) 2000, 2001 Broadcom Corporation
*/
#ifndef __ASM_SMP_OPS_H
#define __ASM_SMP_OPS_H
#include <linux/errno.h>
#include <asm/mips-cps.h>
#ifdef CONFIG_SMP
#include <linux/cpumask.h>
struct task_struct;
struct plat_smp_ops {
void (*send_ipi_single)(int cpu, unsigned int action);
void (*send_ipi_mask)(const struct cpumask *mask, unsigned int action);
void (*init_secondary)(void);
void (*smp_finish)(void);
int (*boot_secondary)(int cpu, struct task_struct *idle);
void (*smp_setup)(void);
void (*prepare_cpus)(unsigned int max_cpus);
#ifdef CONFIG_HOTPLUG_CPU
int (*cpu_disable)(void);
void (*cpu_die)(unsigned int cpu);
#endif
};
extern void register_smp_ops(const struct plat_smp_ops *ops);
static inline void plat_smp_setup(void)
{
extern const struct plat_smp_ops *mp_ops; /* private */
mp_ops->smp_setup();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 21 | 95.45% | 1 | 50.00% |
Matt Redfearn | 1 | 4.55% | 1 | 50.00% |
Total | 22 | 100.00% | 2 | 100.00% |
extern void mips_smp_send_ipi_single(int cpu, unsigned int action);
extern void mips_smp_send_ipi_mask(const struct cpumask *mask,
unsigned int action);
#else /* !CONFIG_SMP */
struct plat_smp_ops;
static inline void plat_smp_setup(void)
{
/* UP, nothing to do ... */
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 10 | 100.00% | 1 | 100.00% |
Total | 10 | 100.00% | 1 | 100.00% |
static inline void register_smp_ops(const struct plat_smp_ops *ops)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 11 | 91.67% | 1 | 50.00% |
Matt Redfearn | 1 | 8.33% | 1 | 50.00% |
Total | 12 | 100.00% | 2 | 100.00% |
#endif /* !CONFIG_SMP */
static inline int register_up_smp_ops(void)
{
#ifdef CONFIG_SMP_UP
extern const struct plat_smp_ops up_smp_ops;
register_smp_ops(&up_smp_ops);
return 0;
#else
return -ENODEV;
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 34 | 97.14% | 2 | 66.67% |
Matt Redfearn | 1 | 2.86% | 1 | 33.33% |
Total | 35 | 100.00% | 3 | 100.00% |
static inline int register_cmp_smp_ops(void)
{
#ifdef CONFIG_MIPS_CMP
extern const struct plat_smp_ops cmp_smp_ops;
if (!mips_cm_present())
return -ENODEV;
register_smp_ops(&cmp_smp_ops);
return 0;
#else
return -ENODEV;
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 34 | 75.56% | 3 | 60.00% |
Paul Burton | 10 | 22.22% | 1 | 20.00% |
Matt Redfearn | 1 | 2.22% | 1 | 20.00% |
Total | 45 | 100.00% | 5 | 100.00% |
static inline int register_vsmp_smp_ops(void)
{
#ifdef CONFIG_MIPS_MT_SMP
extern const struct plat_smp_ops vsmp_smp_ops;
register_smp_ops(&vsmp_smp_ops);
return 0;
#else
return -ENODEV;
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 34 | 97.14% | 3 | 75.00% |
Matt Redfearn | 1 | 2.86% | 1 | 25.00% |
Total | 35 | 100.00% | 4 | 100.00% |
#ifdef CONFIG_MIPS_CPS
extern int register_cps_smp_ops(void);
#else
static inline int register_cps_smp_ops(void)
{
return -ENODEV;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
#endif
#endif /* __ASM_SMP_OPS_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 294 | 79.03% | 6 | 42.86% |
Paul Burton | 66 | 17.74% | 5 | 35.71% |
Matt Redfearn | 6 | 1.61% | 1 | 7.14% |
Rusty Russell | 4 | 1.08% | 1 | 7.14% |
Qais Yousef | 2 | 0.54% | 1 | 7.14% |
Total | 372 | 100.00% | 14 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.