Commit aaec7c0
committed
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>1 parent 4f337fa commit aaec7c0
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7190 | 7190 | | |
7191 | 7191 | | |
7192 | 7192 | | |
7193 | | - | |
| 7193 | + | |
7194 | 7194 | | |
7195 | 7195 | | |
7196 | | - | |
7197 | 7196 | | |
7198 | | - | |
7199 | | - | |
7200 | | - | |
| 7197 | + | |
| 7198 | + | |
| 7199 | + | |
7201 | 7200 | | |
| 7201 | + | |
7202 | 7202 | | |
7203 | 7203 | | |
7204 | 7204 | | |
| |||
0 commit comments