diff options
author | 2009-12-14 10:02:18 -0800 | |
---|---|---|
committer | 2009-12-14 10:05:05 -0800 | |
commit | 494c2ebfb287eb10b229415063099e3700639028 (patch) | |
tree | ac55499ae26219e6c4eaad3b73fd143104048d65 /kernel/resource.c | |
parent | x86, mce: Clean up thermal init by introducing intel_thermal_supported() (diff) | |
download | wireguard-linux-494c2ebfb287eb10b229415063099e3700639028.tar.xz wireguard-linux-494c2ebfb287eb10b229415063099e3700639028.zip |
x86, msr: Remove incorrect, duplicated code in the MSR driver
The MSR driver would compute the values for cpu and c at declaration,
and then again in the body of the function. This isn't merely
redundant, but unsafe, since cpu might not refer to a valid CPU at
that point.
Remove the unnecessary and dangerous references in the declarations.
This code now matches the equivalent code in the CPUID driver.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions