Date: Wed, 9 Dec 2020 16:29:49 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r557378 - in head/security/highwayhash: . files Message-ID: <202012091629.0B9GTnlN038028@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Wed Dec 9 16:29:49 2020 New Revision: 557378 URL: https://svnweb.freebsd.org/changeset/ports/557378 Log: security/highwayhash: remove obviously wrong hunk that I somehow missed before The function reads TimeBase frequency, not the CPU frequency. Modified: head/security/highwayhash/Makefile head/security/highwayhash/files/patch-highwayhash_arch__specific.cc Modified: head/security/highwayhash/Makefile ============================================================================== --- head/security/highwayhash/Makefile Wed Dec 9 16:08:56 2020 (r557377) +++ head/security/highwayhash/Makefile Wed Dec 9 16:29:49 2020 (r557378) @@ -3,6 +3,7 @@ PORTNAME= highwayhash PORTVERSION= g20201021 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= security Modified: head/security/highwayhash/files/patch-highwayhash_arch__specific.cc ============================================================================== --- head/security/highwayhash/files/patch-highwayhash_arch__specific.cc Wed Dec 9 16:08:56 2020 (r557377) +++ head/security/highwayhash/files/patch-highwayhash_arch__specific.cc Wed Dec 9 16:29:49 2020 (r557378) @@ -10,12 +10,3 @@ #endif #endif -@@ -174,7 +174,7 @@ double InvariantTicksPerSecond() { - #elif __FreeBSD__ - static double cycles_per_second = 0; - size_t length = sizeof(cycles_per_second); -- sysctlbyname("kern.timecounter.tc.timebase.frequency", &cycles_per_second, -+ sysctlbyname("dev.cpu.0.freq", &cycles_per_second, - &length, NULL, 0); - #endif - return cycles_per_second;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012091629.0B9GTnlN038028>