Deleted Added
full compact
mp_machdep.c (218591) mp_machdep.c (222531)
1/*-
2 * Copyright (c) 2009 Neelkanth Natu
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Neelkanth Natu
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/mips/mips/mp_machdep.c 218591 2011-02-12 02:08:24Z jmallett $");
28__FBSDID("$FreeBSD: head/sys/mips/mips/mp_machdep.c 222531 2011-05-31 15:11:43Z nwhitehorn $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/ktr.h>
33#include <sys/proc.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>
36#include <sys/kernel.h>

--- 44 unchanged lines hidden (view full) ---

81/* Send an IPI to a set of cpus. */
82void
83ipi_selected(cpumask_t cpus, int ipi)
84{
85 struct pcpu *pc;
86
87 CTR3(KTR_SMP, "%s: cpus: %x, ipi: %x\n", __func__, cpus, ipi);
88
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/ktr.h>
33#include <sys/proc.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>
36#include <sys/kernel.h>

--- 44 unchanged lines hidden (view full) ---

81/* Send an IPI to a set of cpus. */
82void
83ipi_selected(cpumask_t cpus, int ipi)
84{
85 struct pcpu *pc;
86
87 CTR3(KTR_SMP, "%s: cpus: %x, ipi: %x\n", __func__, cpus, ipi);
88
89 SLIST_FOREACH(pc, &cpuhead, pc_allcpu) {
89 STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) {
90 if ((cpus & pc->pc_cpumask) != 0)
91 ipi_send(pc, ipi);
92 }
93}
94
95/* Send an IPI to a specific CPU. */
96void
97ipi_cpu(int cpu, u_int ipi)

--- 255 unchanged lines hidden ---
90 if ((cpus & pc->pc_cpumask) != 0)
91 ipi_send(pc, ipi);
92 }
93}
94
95/* Send an IPI to a specific CPU. */
96void
97ipi_cpu(int cpu, u_int ipi)

--- 255 unchanged lines hidden ---