Lines Matching +full:smp +full:- +full:offset

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 ** SMP Support
6 ** Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com>
7 ** Copyright (C) 2001,2004 Grant Grundler <grundler@parisc-linux.org>
9 ** Lots of stuff stolen from arch/alpha/kernel/smp.c
10 ** ...and then parisc stole from arch/ia64/kernel/smp.c. Thanks David! :^)
13 ** -grant (1/12/2001)
24 #include <linux/smp.h>
76 /********** SMP inter processor interrupt and communication routines */
127 ops = p->pending_ipi; in ipi_interrupt()
128 p->pending_ipi = 0; in ipi_interrupt()
196 p->pending_ipi |= 1 << op; in ipi_send()
197 gsc_writel(IPI_IRQ - CPU_IRQ_BASE, p->hpa); in ipi_send()
282 current->active_mm = &init_mm; in smp_cpu_init()
283 BUG_ON(current->mm); in smp_cpu_init()
300 WARN_ON(((unsigned long)(PAGE0->mem_pdc_hi) << 32 in smp_callin()
301 | PAGE0->mem_pdc) != pdce_proc); in smp_callin()
326 task_thread_info(idle)->cpu = cpuid; in smp_boot_one_cpu()
329 ** (offset into init_tasks[],cpu_data[]) in smp_boot_one_cpu()
340 printk(KERN_INFO "Releasing cpu %d now, hpa=%lx\n", cpuid, p->hpa); in smp_boot_one_cpu()
345 ** From the PA-RISC 2.0 Firmware Architecture Reference Specification: in smp_boot_one_cpu()
351 gsc_writel(TIMER_IRQ - CPU_IRQ_BASE, p->hpa); in smp_boot_one_cpu()
369 printk(KERN_CRIT "SMP: CPU:%d is stuck.\n", cpuid); in smp_boot_one_cpu()
370 return -1; in smp_boot_one_cpu()
374 smp_debug(100, KERN_DEBUG "SMP: CPU:%d came alive after %ld _us\n", in smp_boot_one_cpu()
384 printk(KERN_INFO "SMP: bootstrap CPU ID is %d\n", bootstrap_processor); in smp_prepare_boot_cpu()
407 printk(KERN_INFO "SMP mode deactivated.\n"); in smp_prepare_cpus()
420 return -ENOSYS; in __cpu_up()
422 return cpu_online(cpu) ? 0 : -ENOSYS; in __cpu_up()
428 return -EINVAL; in setup_profiling_timer()