Skip to content

Commit

Permalink
parisc: Fix printk time during boot
Browse files Browse the repository at this point in the history
Avoid showing invalid printk time stamps during boot.

Signed-off-by: Helge Deller <[email protected]>
Reviewed-by: Aaro Koskinen <[email protected]>
  • Loading branch information
hdeller committed Jun 5, 2016
1 parent be24a89 commit 0032c08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 3 additions & 2 deletions arch/parisc/kernel/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,9 @@ int init_per_cpu(int cpunum)
per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision;
per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model;

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

/*
** store status register to stack (hopefully aligned)
Expand Down
5 changes: 0 additions & 5 deletions arch/parisc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,6 @@ void __init time_init(void)
clocks_calc_mult_shift(&cyc2ns_mul, &cyc2ns_shift, current_cr16_khz,
NSEC_PER_MSEC, 0);

#if defined(CONFIG_HAVE_UNSTABLE_SCHED_CLOCK) && defined(CONFIG_64BIT)
/* At bootup only one 64bit CPU is online and cr16 is "stable" */
set_sched_clock_stable();
#endif

start_cpu_itimer(); /* get CPU 0 started */

/* register at clocksource framework */
Expand Down

0 comments on commit 0032c08

Please sign in to comment.