aboutsummaryrefslogtreecommitdiffstats
path: root/demos/touchpad/main.c
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-07-18 04:22:28 +0200
committerTectu <joel@unormal.org>2012-07-18 04:22:28 +0200
commitd0c92628edf94693ae0bb07d9ecc5d581c7ba4be (patch)
tree4c30243959b5ff342cab91ce01b3acbeee9526da /demos/touchpad/main.c
parent096701a6ad8f2ba5512aff4ee430ca0d626fff7a (diff)
downloaduGFX-d0c92628edf94693ae0bb07d9ecc5d581c7ba4be.tar.gz
uGFX-d0c92628edf94693ae0bb07d9ecc5d581c7ba4be.tar.bz2
uGFX-d0c92628edf94693ae0bb07d9ecc5d581c7ba4be.zip
lcdVerticalScroll() uses worker
Diffstat (limited to 'demos/touchpad/main.c')
0 files changed, 0 insertions, 0 deletions
/a> 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
#ifdef CONFIG_CPU_SUP_INTEL

/*
 * Not sure about some of these
 */
static const u64 p6_perfmon_event_map[] =
{
  [PERF_COUNT_HW_CPU_CYCLES]		= 0x0079,
  [PERF_COUNT_HW_INSTRUCTIONS]		= 0x00c0,
  [PERF_COUNT_HW_CACHE_REFERENCES]	= 0x0f2e,
  [PERF_COUNT_HW_CACHE_MISSES]		= 0x012e,
  [PERF_COUNT_HW_BRANCH_INSTRUCTIONS]	= 0x00c4,
  [PERF_COUNT_HW_BRANCH_MISSES]		= 0x00c5,
  [PERF_COUNT_HW_BUS_CYCLES]		= 0x0062,
};

static u64 p6_pmu_event_map(int hw_event)
{
	return p6_perfmon_event_map[hw_event];
}

/*
 * Event setting that is specified not to count anything.
 * We use this to effectively disable a counter.
 *
 * L2_RQSTS with 0 MESI unit mask.
 */
#define P6_NOP_EVENT			0x0000002EULL

static struct event_constraint p6_event_constraints[] =
{
	INTEL_EVENT_CONSTRAINT(0xc1, 0x1),	/* FLOPS */
	INTEL_EVENT_CONSTRAINT(0x10, 0x1),	/* FP_COMP_OPS_EXE */