diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/perf_event.c')
| -rw-r--r-- | arch/sh/kernel/cpu/sh4/perf_event.c | 17 | 
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh4/perf_event.c b/arch/sh/kernel/cpu/sh4/perf_event.c index dbf3b4bb71f..fa4f724b295 100644 --- a/arch/sh/kernel/cpu/sh4/perf_event.c +++ b/arch/sh/kernel/cpu/sh4/perf_event.c @@ -180,6 +180,21 @@ static const int sh7750_cache_events  			[ C(RESULT_MISS)   ] = -1,  		},  	}, + +	[ C(NODE) ] = { +		[ C(OP_READ) ] = { +			[ C(RESULT_ACCESS) ] = -1, +			[ C(RESULT_MISS)   ] = -1, +		}, +		[ C(OP_WRITE) ] = { +			[ C(RESULT_ACCESS) ] = -1, +			[ C(RESULT_MISS)   ] = -1, +		}, +		[ C(OP_PREFETCH) ] = { +			[ C(RESULT_ACCESS) ] = -1, +			[ C(RESULT_MISS)   ] = -1, +		}, +	},  };  static int sh7750_event_map(int event) @@ -250,4 +265,4 @@ static int __init sh7750_pmu_init(void)  	return register_sh_pmu(&sh7750_pmu);  } -arch_initcall(sh7750_pmu_init); +early_initcall(sh7750_pmu_init);  | 
