Deleted Added
full compact
subr_smp.c (209059) subr_smp.c (210939)
1/*-
2 * Copyright (c) 2001, John Baldwin <jhb@FreeBSD.org>.
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

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

28 */
29
30/*
31 * This module holds the global variables and machine independent functions
32 * used for the kernel SMP support.
33 */
34
35#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001, John Baldwin <jhb@FreeBSD.org>.
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

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

28 */
29
30/*
31 * This module holds the global variables and machine independent functions
32 * used for the kernel SMP support.
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/kern/subr_smp.c 209059 2010-06-11 18:46:34Z jhb $");
36__FBSDID("$FreeBSD: head/sys/kern/subr_smp.c 210939 2010-08-06 15:36:59Z jhb $");
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/ktr.h>
42#include <sys/proc.h>
43#include <sys/bus.h>
44#include <sys/lock.h>

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

176
177 /* No need to IPI ourself. */
178 if (td == curthread)
179 return;
180
181 id = td->td_oncpu;
182 if (id == NOCPU)
183 return;
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/ktr.h>
42#include <sys/proc.h>
43#include <sys/bus.h>
44#include <sys/lock.h>

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

176
177 /* No need to IPI ourself. */
178 if (td == curthread)
179 return;
180
181 id = td->td_oncpu;
182 if (id == NOCPU)
183 return;
184 ipi_selected(1 << id, IPI_AST);
184 ipi_cpu(id, IPI_AST);
185}
186
187/*
188 * When called the executing CPU will send an IPI to all other CPUs
189 * requesting that they halt execution.
190 *
191 * Usually (but not necessarily) called with 'other_cpus' as its arg.
192 *

--- 480 unchanged lines hidden ---
185}
186
187/*
188 * When called the executing CPU will send an IPI to all other CPUs
189 * requesting that they halt execution.
190 *
191 * Usually (but not necessarily) called with 'other_cpus' as its arg.
192 *

--- 480 unchanged lines hidden ---