9 Commits

Author SHA1 Message Date
dwh110 956227b077 cputime optimize for arm64 (#3247)
* cputime optimize for arm64
Update src/butil/time.cpp
modify  using __attribute__((constructor)) and merge init_invariant_cpu_freq to inside function read_invariant_cpu_frequency

* Add the macro switch BUTIL_USE_CPU_FREQUENCY while preserving the original default behavior for ARM64

* 1、Activation options: CMake -DWITH_CPU_FREQUENCY=ON, Bazel --define BUTIL_USE_CPU_FREQUENCY=true, script argument --with-cpu-frequency.
2、Disabled by default for consistent legacy behavior.

* fix compile failed

---------

Co-authored-by: seekdwh <dongweihao@huawei.com>
2026-08-06 14:09:21 +08:00
zhujiashun 2b96d08e94 insert_apache_header 2019-10-25 18:01:21 +08:00
tanzhongyibidu 656de8b230 update to make header the same as others 2019-10-09 18:37:02 +08:00
tanzhongyibidu 3345485407 remote empty line and fix bugs for comment on config.in 2019-10-09 18:34:24 +08:00
tanzhongyibidu 3ea48111d6 add license header for make, dockerfile,etc 2019-10-09 15:20:52 +08:00
zhujiashun 6295344ddd make config.h.in consistent with config_brpc.sh 2019-01-13 22:55:33 -08:00
zhujiashun 817a3530b3 revise WITH_GLOG TO BRPC_WITH_GLOG in CMakeLists.txt 2019-01-13 22:40:26 -08:00
zhujiashun c9c901b866 fix glog name problem in cmake 2019-01-13 22:08:23 -08:00
zhujiashun b92c498139 support conditional flags on certain gcc and compile proto file using cmake, based on CMakefile from kevin-xu-158 2017-12-03 07:16:35 -08:00