M7350/kernel/arch/xtensa/include/asm/smp.h

44 lines
967 B
C
Raw Permalink Normal View History

2024-09-09 08:52:07 +00:00
/*
* 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.
*
2024-09-09 08:57:42 +00:00
* Copyright (C) 2001 - 2013 Tensilica Inc.
2024-09-09 08:52:07 +00:00
*/
#ifndef _XTENSA_SMP_H
#define _XTENSA_SMP_H
2024-09-09 08:57:42 +00:00
#ifdef CONFIG_SMP
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#define raw_smp_processor_id() (current_thread_info()->cpu)
#define cpu_logical_map(cpu) (cpu)
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
struct start_info {
unsigned long stack;
2024-09-09 08:52:07 +00:00
};
2024-09-09 08:57:42 +00:00
extern struct start_info start_info;
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
struct cpumask;
void arch_send_call_function_ipi_mask(const struct cpumask *mask);
void arch_send_call_function_single_ipi(int cpu);
void smp_init_cpus(void);
void secondary_init_irq(void);
void ipi_init(void);
struct seq_file;
void show_ipi_list(struct seq_file *p, int prec);
#ifdef CONFIG_HOTPLUG_CPU
void __cpu_die(unsigned int cpu);
int __cpu_disable(void);
void cpu_die(void);
void cpu_restart(void);
#endif /* CONFIG_HOTPLUG_CPU */
#endif /* CONFIG_SMP */
2024-09-09 08:52:07 +00:00
#endif /* _XTENSA_SMP_H */