Skip to content
Snippets Groups Projects
Commit aaec7c03 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 4f337faf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment