summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/numa.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-03-07 12:57:36 +0100
committerLen Brown <len.brown@intel.com>2012-03-30 22:06:12 +0200
commit344e222edf486bf42da1ced137e36df7a345b0ad (patch)
tree6999f131dc4ac8b6a022ffb5b127c4eb0421cb7b /drivers/acpi/numa.c
parentDisable MCP limit exceeded messages from Intel IPS driver (diff)
downloadlinux-344e222edf486bf42da1ced137e36df7a345b0ad.tar.xz
linux-344e222edf486bf42da1ced137e36df7a345b0ad.zip
ACPI throttling: fix endian bug in acpi_read_throttling_status()
Using a u64 here creates an endian bug. We store a u32 number in the top byte which is a larger number than intended on big endian systems. There is no reason to use a 64 bit data type here, I guess it was just an oversight. I removed the initialization to zero as well. It's needed with a u64 but with a u32, the variable gets initialized properly inside the call to acpi_os_read_port(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/numa.c')
0 files changed, 0 insertions, 0 deletions