diff options
author | 2020-02-28 10:49:10 +0100 | |
---|---|---|
committer | 2020-02-28 10:54:50 +0100 | |
commit | aaec7c03de92c35a96966631989950e6e27662db (patch) | |
tree | ea7bca180557b531b94b6a1a3d81aaca81bd8c89 /lib/test_overflow.c | |
parent | KVM: allow disabling -Werror (diff) | |
download | wireguard-linux-aaec7c03de92c35a96966631989950e6e27662db.tar.xz wireguard-linux-aaec7c03de92c35a96966631989950e6e27662db.zip |
KVM: x86: avoid useless copy of cpufreq policy
struct cpufreq_policy is quite big and it is not a good idea
to allocate one on the stack. Just use cpufreq_cpu_get and
cpufreq_cpu_put which is even simpler.
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions