Deleted Added
full compact
hwpmc_amd.c (145256) hwpmc_amd.c (145338)
1/*-
2 * Copyright (c) 2003-2005 Joseph Koshy
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

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

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
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2005 Joseph Koshy
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

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

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
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_amd.c 145256 2005-04-19 04:01:25Z jkoshy $");
29__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_amd.c 145338 2005-04-20 20:26:39Z marcel $");
30
31/* Support for the AMD K7 and later processors */
32
33#include <sys/param.h>
34#include <sys/lock.h>
35#include <sys/malloc.h>
36#include <sys/mutex.h>
30
31/* Support for the AMD K7 and later processors */
32
33#include <sys/param.h>
34#include <sys/lock.h>
35#include <sys/malloc.h>
36#include <sys/mutex.h>
37#include <sys/pmc.h>
37#include <sys/smp.h>
38#include <sys/systm.h>
39
40#include <machine/md_var.h>
38#include <sys/smp.h>
39#include <sys/systm.h>
40
41#include <machine/md_var.h>
41#include <machine/pmc_mdep.h>
42#include <machine/specialreg.h>
43
44/* AMD K7 and K8 PMCs */
45
46#define AMD_PMC_EVSEL_0 0xC0010000
47#define AMD_PMC_EVSEL_1 0xC0010001
48#define AMD_PMC_EVSEL_2 0xC0010002
49#define AMD_PMC_EVSEL_3 0xC0010003
50

--- 946 unchanged lines hidden ---
42
43/* AMD K7 and K8 PMCs */
44
45#define AMD_PMC_EVSEL_0 0xC0010000
46#define AMD_PMC_EVSEL_1 0xC0010001
47#define AMD_PMC_EVSEL_2 0xC0010002
48#define AMD_PMC_EVSEL_3 0xC0010003
49

--- 946 unchanged lines hidden ---