Skip to content

Commit 0032c08

Browse files
committed
parisc: Fix printk time during boot
Avoid showing invalid printk time stamps during boot. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Aaro Koskinen <aaro.koskinen@iki.fi>
1 parent be24a89 commit 0032c08

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎arch/parisc/kernel/processor.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ int init_per_cpu(int cpunum)
324324
per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision;
325325
per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model;
326326

327-
printk(KERN_INFO "FP[%d] enabled: Rev %ld Model %ld\n",
328-
cpunum, coproc_cfg.revision, coproc_cfg.model);
327+
if (cpunum == 0)
328+
printk(KERN_INFO "FP[%d] enabled: Rev %ld Model %ld\n",
329+
cpunum, coproc_cfg.revision, coproc_cfg.model);
329330

330331
/*
331332
** store status register to stack (hopefully aligned)

‎arch/parisc/kernel/time.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,6 @@ void __init time_init(void)
309309
clocks_calc_mult_shift(&cyc2ns_mul, &cyc2ns_shift, current_cr16_khz,
310310
NSEC_PER_MSEC, 0);
311311

312-
#if defined(CONFIG_HAVE_UNSTABLE_SCHED_CLOCK) && defined(CONFIG_64BIT)
313-
/* At bootup only one 64bit CPU is online and cr16 is "stable" */
314-
set_sched_clock_stable();
315-
#endif
316-
317312
start_cpu_itimer(); /* get CPU 0 started */
318313

319314
/* register at clocksource framework */

0 commit comments

Comments
 (0)