vppinfra: fix cpu freq init error if cpu support aperfmperf 77/40377/4
authorXiaoming Jiang <[email protected]>
Thu, 22 Feb 2024 13:24:20 +0000 (21:24 +0800)
committerFan Zhang <[email protected]>
Thu, 18 Jul 2024 08:46:14 +0000 (08:46 +0000)
commit04da32426018a338a7585bc6a412c78847e5eef8
tree3ff2e227f6c7389aaf8fdcf6f14a5c5c82e3b288
parent357291142bf76963e7bdbaed5ebd912254c1e0ad
vppinfra: fix cpu freq init error if cpu support aperfmperf

After linux-v4.15, 'cpu MHz' in /proc/cpuinfo is CPU
real frequency on x86 if cpu support aperfmperf flags

more see linux commit:
https://github.com/torvalds/linux/commit/7d5905dc14a87805a59f3c5bf70173aac2bb18f8

Type: fix
Change-Id: Ib655a9a1c519104142120b343cd8ddbe0b6e50e6
Signed-off-by: Xiaoming Jiang <[email protected]>
src/vppinfra/cpu.h
src/vppinfra/time.c