Date: Tue, 10 Sep 2019 15:01:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240475] [PATCH]: Add support for CPUID 0x16 in tsc_freq_cpuid() (TSC clock) Message-ID: <bug-240475-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240475 Bug ID: 240475 Summary: [PATCH]: Add support for CPUID 0x16 in tsc_freq_cpuid() (TSC clock) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: neel@neelc.org Created attachment 207346 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D207346&action= =3Dedit Patch (Revision 1) Keep in mind that I am new to the kernel. Description: If frequency for CPUID 0x15 is zero, fall back to CPUID 0x16 for the TSC cl= ock if available. This is needed on some Intel SOCs like Skylake and Kaby Lake whcih report 0 for the crystal clock.. Inspired by Linux commit 604dc9170f2435d27da5039a3efd757dceadc684. Tested on the HP Spectre x360 13-ap0043dx running 13-CURRENT with an accura= te clock using this patch (without the patch, the ticks are slower). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240475-227>