This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add "pmu=off" to default cpu_features option
The user sometimes doesn't care about pmu usage(e.g. perf tool profiling). But pmu will cost significant overhead on boot time and virtualization context switch. E.g. on arm64, if guest pmu is enabled, kvm should save and restore all PMU registers when guest/host switching. for dmesg comparision: Before: [ 0.007620] bus: 'platform': driver_probe_device: matched device pmu with driver armv8-pmu [ 0.007622] bus: 'platform': really_probe: probing driver armv8-pmu with device pmu [ 0.036282] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available [ 0.036285] driver: 'armv8-pmu': driver_bound: bound to device 'pmu' [ 0.036295] bus: 'platform': really_probe: bound device pmu to driver armv8-pmu After: [ 0.007935] bus: 'platform': driver_probe_device: matched device alarmtimer with driver alarmtimer [ 0.007937] bus: 'platform': really_probe: probing driver alarmtimer with device alarmtimer [ 0.007940] driver: 'alarmtimer': driver_bound: bound to device 'alarmtimer' [ 0.007944] bus: 'platform': really_probe: bound device alarmtimer to driver alarmtimer Because s390 doest support "pmu=off", keep the default CPUFEATURES to be "" instead of "pmu=off". Fixes: #2576 Signed-off-by: Jia He <[email protected]>
- Loading branch information