diff options
Diffstat (limited to 'arch/s390/kernel/time.c')
-rw-r--r-- | arch/s390/kernel/time.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index ca114fe46ffb..b94e9e3b694a 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c | |||
@@ -169,6 +169,8 @@ void init_cpu_timer(void) | |||
169 | 169 | ||
170 | static void clock_comparator_interrupt(__u16 code) | 170 | static void clock_comparator_interrupt(__u16 code) |
171 | { | 171 | { |
172 | if (S390_lowcore.clock_comparator == -1ULL) | ||
173 | set_clock_comparator(S390_lowcore.clock_comparator); | ||
172 | } | 174 | } |
173 | 175 | ||
174 | static void etr_timing_alert(struct etr_irq_parm *); | 176 | static void etr_timing_alert(struct etr_irq_parm *); |
@@ -1354,7 +1356,7 @@ static void __init stp_reset(void) | |||
1354 | 1356 | ||
1355 | stp_page = alloc_bootmem_pages(PAGE_SIZE); | 1357 | stp_page = alloc_bootmem_pages(PAGE_SIZE); |
1356 | rc = chsc_sstpc(stp_page, STP_OP_CTRL, 0x0000); | 1358 | rc = chsc_sstpc(stp_page, STP_OP_CTRL, 0x0000); |
1357 | if (rc == 1) | 1359 | if (rc == 0) |
1358 | set_bit(CLOCK_SYNC_HAS_STP, &clock_sync_flags); | 1360 | set_bit(CLOCK_SYNC_HAS_STP, &clock_sync_flags); |
1359 | else if (stp_online) { | 1361 | else if (stp_online) { |
1360 | printk(KERN_WARNING "Running on non STP capable machine.\n"); | 1362 | printk(KERN_WARNING "Running on non STP capable machine.\n"); |