diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-05-10 17:13:42 +0200 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2011-05-10 17:13:43 +0200 |
commit | 3d8dcb3c76bb2930798f61675c33cce8945ab988 (patch) | |
tree | e66a26e9214bb4d9dc4d57bad238706b05662e1b /arch/s390/oprofile/hwsampler.h | |
parent | [S390] replace diag10() with diag10_range() function (diff) | |
download | linux-3d8dcb3c76bb2930798f61675c33cce8945ab988.tar.xz linux-3d8dcb3c76bb2930798f61675c33cce8945ab988.zip |
[S390] oprofile: fix min/max interval query checks
oprofile_min_interval and oprofile_max_interval are unsigned, checking
for negative values doesn't work. Change hwsampler_query_min_interval
and hwsampler_query_max_interval to return an unsigned long and
check for a zero value instead.
Reported-by: Nicolas Kaiser <nikai@nikai.net>
Acked-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/oprofile/hwsampler.h')
-rw-r--r-- | arch/s390/oprofile/hwsampler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/oprofile/hwsampler.h b/arch/s390/oprofile/hwsampler.h index 8c72b59316b5..1912f3bb190c 100644 --- a/arch/s390/oprofile/hwsampler.h +++ b/arch/s390/oprofile/hwsampler.h @@ -102,8 +102,8 @@ int hwsampler_setup(void); int hwsampler_shutdown(void); int hwsampler_allocate(unsigned long sdbt, unsigned long sdb); int hwsampler_deallocate(void); -long hwsampler_query_min_interval(void); -long hwsampler_query_max_interval(void); +unsigned long hwsampler_query_min_interval(void); +unsigned long hwsampler_query_max_interval(void); int hwsampler_start_all(unsigned long interval); int hwsampler_stop_all(void); int hwsampler_deactivate(unsigned int cpu); |