History

Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6

* 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: [S390] allow setting of upper 32 bit in smp_ctl_set_bit [S390] hwsampler: Set a sane default sampling rate [S390] s390: enforce HW limits for the initial sampling rate [S390] kvm-s390: fix kconfig dependencies

Linus Torvalds committed 15 years ago

Commit 9c317b32 parents 258e43f 859c9653 files · +10 −3Browse files

Unified · Split

3 files
  1. arch/s390/Kconfig +1 −0
  2. arch/s390/kernel/smp.c +2 −2
  3. arch/s390/oprofile/init.c +7 −1
arch/s390/Kconfig+1−0
@@ -579,6 +579,7 @@ config S390_GUEST · 578 unmodified lines
579579 def_bool y
580580 prompt "s390 guest support for KVM (EXPERIMENTAL)"
581581 depends on 64BIT && EXPERIMENTAL
582+ select VIRTUALIZATION
582583 select VIRTIO
583584 select VIRTIO_RING
584585 select VIRTIO_CONSOLE
arch/s390/kernel/smp.c+2−2
@@ -262,7 +262,7 @@ void smp_ctl_set_bit(int cr, int bit) · 261 unmodified lines
262262
263263 memset(&parms.orvals, 0, sizeof(parms.orvals));
264264 memset(&parms.andvals, 0xff, sizeof(parms.andvals));
265− parms.orvals[cr] = 1 << bit;
265+ parms.orvals[cr] = 1UL << bit;
266266 on_each_cpu(smp_ctl_bit_callback, &parms, 1);
267267 }
268268 EXPORT_SYMBOL(smp_ctl_set_bit);
@@ -276,7 +276,7 @@ void smp_ctl_clear_bit(int cr, int bit) · 7 unmodified lines
276276
277277 memset(&parms.orvals, 0, sizeof(parms.orvals));
278278 memset(&parms.andvals, 0xff, sizeof(parms.andvals));
279− parms.andvals[cr] = ~(1L << bit);
279+ parms.andvals[cr] = ~(1UL << bit);
280280 on_each_cpu(smp_ctl_bit_callback, &parms, 1);
281281 }
282282 EXPORT_SYMBOL(smp_ctl_clear_bit);
arch/s390/oprofile/init.c+7−1
@@ -25,7 +25,7 @@ extern void s390_backtrace(struct pt_regs * const regs, unsigned int depth); · 24 unmodified lines
2525
2626 #include "hwsampler.h"
2727
28−#define DEFAULT_INTERVAL 4096
28+#define DEFAULT_INTERVAL 4127518
2929
3030 #define DEFAULT_SDBT_BLOCKS 1
3131 #define DEFAULT_SDB_BLOCKS 511
@@ -151,6 +151,12 @@ static int oprofile_hwsampler_init(struct oprofile_operations *ops) · 119 unmodified lines
151151 if (oprofile_max_interval == 0)
152152 return -ENODEV;
153153
154+ /* The initial value should be sane */
155+ if (oprofile_hw_interval < oprofile_min_interval)
156+ oprofile_hw_interval = oprofile_min_interval;
157+ if (oprofile_hw_interval > oprofile_max_interval)
158+ oprofile_hw_interval = oprofile_max_interval;
159+
154160 if (oprofile_timer_init(ops))
155161 return -ENODEV;
156162