svn commit: r557378 - in head/security/highwayhash: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Dec 9 16:29:50 UTC 2020
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;
More information about the svn-ports-head
mailing list