402e9228f7
arch/s390/pci/pci_bus.h: zpci_bus_init - only declaration left after commit05bc1be6db
("s390/pci: create zPCI bus") arch/s390/include/asm/gmap.h: gmap_pte_notify - only declaration left after commit4be130a084
("s390/mm: add shadow gmap support") arch/s390/include/asm/pgalloc.h: rcu_table_freelist_finish - only declaration left after commit36409f6353
("[S390] use generic RCU page-table freeing code") arch/s390/include/asm/tlbflush.h: smp_ptlb_all - only declaration left after commit5a79859ae0
("s390: remove 31 bit support") arch/s390/include/asm/vtimer.h: init_cpu_vtimer - only declaration left after commitb5f87f15e2
("s390/idle: consolidate idle functions and definitions") arch/s390/include/asm/pci.h: zpci_debug_info - only declaration left after commit386aa051fb
("s390/pci: remove per device debug attribute") arch/s390/include/asm/vdso.h: vdso_alloc_boot_cpu - only declaration left after commit4bff8cb545
("s390: convert to GENERIC_VDSO") arch/s390/include/asm/smp.h: smp_vcpu_scheduled - only declaration left after commit67626fadd2
("s390: enforce CONFIG_SMP") arch/s390/kernel/entry.h: restart_call_handler - only declaration left after commit8b646bd759
("[S390] rework smp code") arch/s390/kernel/entry.h: startup_init_nobss - only declaration left after commit2e83e0eb85
("s390: clean .bss before running uncompressed kernel") arch/s390/kernel/entry.h: s390_early_resume - only declaration left after commit394216275c
("s390: remove broken hibernate / power management support") drivers/s390/char/raw3270.h: raw3270_request_alloc_bootmem - only declaration left after commit33403dcfcd
("[S390] 3270 console: convert from bootmem to slab") drivers/s390/cio/device.h: ccw_device_schedule_sch_unregister - only declaration left after commit37de53bb52
("[S390] cio: introduce ccw device todos") drivers/s390/char/tape.h: tape_hotplug_event - has only declaration since recorded git history. drivers/s390/char/tape.h: tape_oper_handler - has only declaration since recorded git history. drivers/s390/char/tape.h: tape_noper_handler - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_check_locate - only declaration left after commit161beff8f4
("s390/tape: remove tape block leftovers") drivers/s390/char/tape_std.h: tape_std_default_handler - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_unexpect_uchk_handler - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_irq - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_error_recovery - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_error_recovery_has_failed - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_error_recovery_succeded - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_error_recovery_do_retry - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_error_recovery_read_opposite - has only declaration since recorded git history. drivers/s390/char/tape_std.h: tape_std_error_recovery_HWBUG - has only declaration since recorded git history. Reviewed-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright IBM Corp. 1999, 2012
|
|
* Author(s): Denis Joseph Barrow,
|
|
* Martin Schwidefsky <schwidefsky@de.ibm.com>,
|
|
* Heiko Carstens <heiko.carstens@de.ibm.com>,
|
|
*/
|
|
#ifndef __ASM_SMP_H
|
|
#define __ASM_SMP_H
|
|
|
|
#include <asm/sigp.h>
|
|
#include <asm/lowcore.h>
|
|
#include <asm/processor.h>
|
|
|
|
#define raw_smp_processor_id() (S390_lowcore.cpu_nr)
|
|
|
|
extern struct mutex smp_cpu_state_mutex;
|
|
extern unsigned int smp_cpu_mt_shift;
|
|
extern unsigned int smp_cpu_mtid;
|
|
extern __vector128 __initdata boot_cpu_vector_save_area[__NUM_VXRS];
|
|
|
|
extern int __cpu_up(unsigned int cpu, struct task_struct *tidle);
|
|
|
|
extern void arch_send_call_function_single_ipi(int cpu);
|
|
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
|
|
|
|
extern void smp_call_online_cpu(void (*func)(void *), void *);
|
|
extern void smp_call_ipl_cpu(void (*func)(void *), void *);
|
|
extern void smp_emergency_stop(void);
|
|
|
|
extern int smp_find_processor_id(u16 address);
|
|
extern int smp_store_status(int cpu);
|
|
extern void smp_save_dump_cpus(void);
|
|
extern void smp_yield_cpu(int cpu);
|
|
extern void smp_cpu_set_polarization(int cpu, int val);
|
|
extern int smp_cpu_get_polarization(int cpu);
|
|
extern int smp_cpu_get_cpu_address(int cpu);
|
|
extern void smp_fill_possible_mask(void);
|
|
extern void smp_detect_cpus(void);
|
|
|
|
static inline void smp_stop_cpu(void)
|
|
{
|
|
u16 pcpu = stap();
|
|
|
|
for (;;) {
|
|
__pcpu_sigp(pcpu, SIGP_STOP, 0, NULL);
|
|
cpu_relax();
|
|
}
|
|
}
|
|
|
|
/* Return thread 0 CPU number as base CPU */
|
|
static inline int smp_get_base_cpu(int cpu)
|
|
{
|
|
return cpu - (cpu % (smp_cpu_mtid + 1));
|
|
}
|
|
|
|
static inline void smp_cpus_done(unsigned int max_cpus)
|
|
{
|
|
}
|
|
|
|
extern int smp_rescan_cpus(void);
|
|
extern void __noreturn cpu_die(void);
|
|
extern void __cpu_die(unsigned int cpu);
|
|
extern int __cpu_disable(void);
|
|
extern void schedule_mcck_handler(void);
|
|
|
|
#endif /* __ASM_SMP_H */
|