18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * SMP definitions for the Hexagon architecture
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef __ASM_SMP_H
98c2ecf20Sopenharmony_ci#define __ASM_SMP_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <linux/cpumask.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define raw_smp_processor_id() (current_thread_info()->cpu)
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cienum ipi_message_type {
168c2ecf20Sopenharmony_ci	IPI_NOP = 0,
178c2ecf20Sopenharmony_ci	IPI_RESCHEDULE = 1,
188c2ecf20Sopenharmony_ci	IPI_CALL_FUNC,
198c2ecf20Sopenharmony_ci	IPI_CPU_STOP,
208c2ecf20Sopenharmony_ci	IPI_TIMER,
218c2ecf20Sopenharmony_ci};
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciextern void send_ipi(const struct cpumask *cpumask, enum ipi_message_type msg);
248c2ecf20Sopenharmony_ciextern void smp_start_cpus(void);
258c2ecf20Sopenharmony_ciextern void arch_send_call_function_single_ipi(int cpu);
268c2ecf20Sopenharmony_ciextern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciextern void smp_vm_unmask_irq(void *info);
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci#endif
31