Commit 501b6d29 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] iSeries: fix time.c for combined build

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ad5cb17f
...@@ -631,7 +631,8 @@ void timer_interrupt(struct pt_regs * regs) ...@@ -631,7 +631,8 @@ void timer_interrupt(struct pt_regs * regs)
calculate_steal_time(); calculate_steal_time();
#ifdef CONFIG_PPC_ISERIES #ifdef CONFIG_PPC_ISERIES
get_lppaca()->int_dword.fields.decr_int = 0; if (firmware_has_feature(FW_FEATURE_ISERIES))
get_lppaca()->int_dword.fields.decr_int = 0;
#endif #endif
while ((ticks = tb_ticks_since(per_cpu(last_jiffy, cpu))) while ((ticks = tb_ticks_since(per_cpu(last_jiffy, cpu)))
...@@ -674,7 +675,7 @@ void timer_interrupt(struct pt_regs * regs) ...@@ -674,7 +675,7 @@ void timer_interrupt(struct pt_regs * regs)
set_dec(next_dec); set_dec(next_dec);
#ifdef CONFIG_PPC_ISERIES #ifdef CONFIG_PPC_ISERIES
if (hvlpevent_is_pending()) if (firmware_has_feature(FW_FEATURE_ISERIES) && hvlpevent_is_pending())
process_hvlpevents(); process_hvlpevents();
#endif #endif
...@@ -774,7 +775,7 @@ int do_settimeofday(struct timespec *tv) ...@@ -774,7 +775,7 @@ int do_settimeofday(struct timespec *tv)
* settimeofday to perform this operation. * settimeofday to perform this operation.
*/ */
#ifdef CONFIG_PPC_ISERIES #ifdef CONFIG_PPC_ISERIES
if (first_settimeofday) { if (firmware_has_feature(FW_FEATURE_ISERIES) && first_settimeofday) {
iSeries_tb_recal(); iSeries_tb_recal();
first_settimeofday = 0; first_settimeofday = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment