diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2017-02-13 12:30:09 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-03-31 07:53:26 +0200 |
commit | 20ba46da369e239aa454cc57d0c7e33d51a8de51 (patch) | |
tree | 2d6dd22dfe431aace07338b548a6a1a951914343 /arch/s390/kernel | |
parent | 4d6e51c740170595868eded99eb448ea79db803a (diff) | |
download | op-kernel-dev-20ba46da369e239aa454cc57d0c7e33d51a8de51.zip op-kernel-dev-20ba46da369e239aa454cc57d0c7e33d51a8de51.tar.gz |
s390/cpum_cf: update counter numbers to ecctr limits
Use the highest counter number that can be specified for the
ecctr (extract CPU counter) instruction for perf.
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/perf_cpum_cf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c index 1aba10e..1c3f938 100644 --- a/arch/s390/kernel/perf_cpum_cf.c +++ b/arch/s390/kernel/perf_cpum_cf.c @@ -370,7 +370,7 @@ static int __hw_perf_event_init(struct perf_event *event) if (ev == -1) return -ENOENT; - if (ev >= PERF_CPUM_CF_MAX_CTR) + if (ev > PERF_CPUM_CF_MAX_CTR) return -EINVAL; /* Use the hardware perf event structure to store the counter number |