aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/oprofile
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2011-07-11 08:15:48 -0400
committerJiri Kosina <jkosina@suse.cz>2011-07-11 08:15:55 -0400
commitb7e9c223be8ce335e30f2cf6ba588e6a4092275c (patch)
tree2d1e3b75606abc18df7ad65e51ac3f90cd68b38d /arch/s390/oprofile
parentc172d82500a6cf3c32d1e650722a1055d72ce858 (diff)
parente3bbfa78bab125f58b831b5f7f45b5a305091d72 (diff)
Merge branch 'master' into for-next
Sync with Linus' tree to be able to apply pending patches that are based on newer code already present upstream.
Diffstat (limited to 'arch/s390/oprofile')
-rw-r--r--arch/s390/oprofile/init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/s390/oprofile/init.c b/arch/s390/oprofile/init.c
index 0c2d94b94f0b..6efc18b5e60a 100644
--- a/arch/s390/oprofile/init.c
+++ b/arch/s390/oprofile/init.c
@@ -23,7 +23,7 @@ extern void s390_backtrace(struct pt_regs * const regs, unsigned int depth);
23 23
24#include "hwsampler.h" 24#include "hwsampler.h"
25 25
26#define DEFAULT_INTERVAL 4096 26#define DEFAULT_INTERVAL 4127518
27 27
28#define DEFAULT_SDBT_BLOCKS 1 28#define DEFAULT_SDBT_BLOCKS 1
29#define DEFAULT_SDB_BLOCKS 511 29#define DEFAULT_SDB_BLOCKS 511
@@ -149,6 +149,12 @@ static int oprofile_hwsampler_init(struct oprofile_operations *ops)
149 if (oprofile_max_interval == 0) 149 if (oprofile_max_interval == 0)
150 return -ENODEV; 150 return -ENODEV;
151 151
152 /* The initial value should be sane */
153 if (oprofile_hw_interval < oprofile_min_interval)
154 oprofile_hw_interval = oprofile_min_interval;
155 if (oprofile_hw_interval > oprofile_max_interval)
156 oprofile_hw_interval = oprofile_max_interval;
157
152 if (oprofile_timer_init(ops)) 158 if (oprofile_timer_init(ops))
153 return -ENODEV; 159 return -ENODEV;
154 160