Suggestion add tsc directsync patch

Some laptops with an AMD processor face this issue. I created a question on the lenovo forum about this, but they don’t do anything. I have a Lenovo Legion 5 2021 and there are no updates for it. The problem is that the clocksource fallback from TSC to HPET and if you try to force this, the system becomes unstable. Here is a link to the topic:

https://forums.lenovo.com/t5/Other-Linux-Discussions/TSC-clocksource-not-work/m-p/5126977?random=boPZTxOcmomaeuu7jjE20wqXvg1ZoItw_d5c9f2d6a7974a00ad8676decc77cd59&page=1

A solution was found in the topic it’s a patch that changes the calculation of clocksource and can be enabled using kernel cmdline parameter tsc=directsync. This has a pretty noticeable effect on performance.

Do you have a direct link to the patch? I looked at the Gitea source and that patch doesn’t exist anymore.

It has been unavailable for a while I have a local copy but recently checked and repo is available again. I used patches 0020-0025