openwrt/target/linux/realtek
Sander Vanheule 75c576d4c4 realtek: mark clock source as continuous
After replacing the R4K event timer and clock source with the new
Realtek Otto timer, performance for RTL839x devices was severely
impacted, as reported by Hiroshi.

Research by Markus showed that after commit 4657a5301e ("realtek:
avoid busy waiting for RTL839x PHY read/write"), the ethernet driver
could only update a phy once per timer interval, which also heavily
impacted boot time. On e.g. a Zyxel GS1900-48, this added around a
minute to the time to fully initialise the switch.

By marking the otto clocksource as continuous, the kernel enables it to
be used for high resolution timers. This allows readx_poll_timeout() to
sleep for less than one system timer interval, reducing system dead
time.

Link: https://github.com/openwrt/openwrt/issues/11117
Reported-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Cc: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: INAGAKI Hiroshi <musashino.open@gmail.com> # Panasonic Switch-M48eG PN28480K
Tested-by: Jan Hoffmann <jan@3e8.eu> # HPE 1920-8G, HPE 1920-48G
2022-11-01 09:13:11 +01:00
..
base-files realtek: add support for TP-Link SG2210P 2022-09-13 09:22:26 +02:00
dts-5.10 realtek: timer driver: activate for RTL839X devices 2022-10-23 22:33:08 +02:00
files/firmware/rtl838x_phy realtek: update the tree to the latest refactored version 2020-11-26 13:29:27 +01:00
files-5.10 realtek: mark clock source as continuous 2022-11-01 09:13:11 +01:00
image realtek: use Device prefix for common recipes 2022-09-18 10:12:19 +02:00
patches-5.10 realtek: 5.10: refresh kernel patches 2022-10-25 04:56:16 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: timer driver: activate for RTL838X devices 2022-10-23 22:33:08 +02:00
rtl839x realtek: timer driver: activate for RTL839X devices 2022-10-23 22:33:08 +02:00
rtl930x realtek: disable otto timer for RTL93xx targets 2022-10-23 22:33:08 +02:00
rtl931x realtek: disable otto timer for RTL93xx targets 2022-10-23 22:33:08 +02:00
Makefile realtek: Fix tc default package 2022-03-29 13:43:01 +02:00