linux-stable/drivers/tty/hvc
Stewart Smith c3e347251c hvc_opal: don't set tb_ticks_per_usec in udbg_init_opal_common()
[ Upstream commit 447808bf50 ]

time_init() will set up tb_ticks_per_usec based on reality.
time_init() is called *after* udbg_init_opal_common() during boot.

from arch/powerpc/kernel/time.c:
  unsigned long tb_ticks_per_usec = 100; /* sane default */

Currently, all powernv systems have a timebase frequency of 512mhz
(512000000/1000000 == 0x200) - although there's nothing written
down anywhere that I can find saying that we couldn't make that
different based on the requirements in the ISA.

So, we've been (accidentally) thwacking the (currently) correct
(for powernv at least) value for tb_ticks_per_usec earlier than
we otherwise would have.

The "sane default" seems to be adequate for our purposes between
udbg_init_opal_common() and time_init() being called, and if it isn't,
then we should probably be setting it somewhere that isn't hvc_opal.c!

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:55:14 +02:00
..
hvc_bfin_jtag.c
hvc_console.c tty: hvc_console: silence unintialized variable warning 2016-04-30 09:26:55 -07:00
hvc_console.h tty/hvc: Use IRQF_SHARED for OPAL hvc consoles 2016-07-27 12:38:18 +10:00
hvc_dcc.c
hvc_irq.c tty/hvc: Use IRQF_SHARED for OPAL hvc consoles 2016-07-27 12:38:18 +10:00
hvc_iucv.c
hvc_opal.c hvc_opal: don't set tb_ticks_per_usec in udbg_init_opal_common() 2018-08-03 07:55:14 +02:00
hvc_rtas.c
hvc_tile.c
hvc_udbg.c
hvc_vio.c
hvc_xen.c xen: features and fixes for 4.6-rc0 2016-03-22 12:55:17 -07:00
hvcs.c tty: Replace TTY_THROTTLED bit tests with tty_throttled() 2016-04-30 09:26:55 -07:00
hvsi.c tty: Replace TTY_THROTTLED bit tests with tty_throttled() 2016-04-30 09:26:55 -07:00
hvsi_lib.c
Kconfig
Makefile