diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-04-20 07:19:30 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-04-20 08:57:55 -0400 |
commit | d8f6ad85cbb740b7e8ca5275b12838fab685540c (patch) | |
tree | 331ac3f5718317692d6e32c9b52bf5e8a83a548e /arch/arc/kernel | |
parent | 30fdd373f24cc50e250c71a6e2df89505e267804 (diff) |
ARC: perf: don't add code for impossible case
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r-- | arch/arc/kernel/perf_event.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index 165e0b604167..fd2ec50102f2 100644 --- a/arch/arc/kernel/perf_event.c +++ b/arch/arc/kernel/perf_event.c | |||
@@ -288,10 +288,7 @@ static int arc_pmu_device_probe(struct platform_device *pdev) | |||
288 | BUG_ON(pct_bcr.c > ARC_PMU_MAX_HWEVENTS); | 288 | BUG_ON(pct_bcr.c > ARC_PMU_MAX_HWEVENTS); |
289 | 289 | ||
290 | READ_BCR(ARC_REG_CC_BUILD, cc_bcr); | 290 | READ_BCR(ARC_REG_CC_BUILD, cc_bcr); |
291 | if (!cc_bcr.v) { | 291 | BUG_ON(!cc_bcr.v); /* Counters exist but No countable conditions ? */ |
292 | pr_err("Performance counters exist, but no countable conditions?\n"); | ||
293 | return -ENODEV; | ||
294 | } | ||
295 | 292 | ||
296 | arc_pmu = devm_kzalloc(&pdev->dev, sizeof(struct arc_pmu), GFP_KERNEL); | 293 | arc_pmu = devm_kzalloc(&pdev->dev, sizeof(struct arc_pmu), GFP_KERNEL); |
297 | if (!arc_pmu) | 294 | if (!arc_pmu) |