diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-04-27 16:11:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-06-25 16:26:06 -0700 |
commit | d1fbefcb3aa608599a3c9e4582cbeeb6ba6c8939 (patch) | |
tree | 71036808a608a78bd17a3572c64f822d6e9470ed /drivers/rtc/rtc-twl.c | |
parent | afcbf13fa6d53d8a97eafaca1dcb344331d2ce0c (diff) |
x86, processor-flags: Fix the datatypes and add bit number defines
The control registers are unsigned long (32 bits on i386, 64 bits on
x86-64), and so make that manifest in the data type for the various
constants. Add defines with a _BIT suffix which defines the bit
number, as opposed to the bit mask.
This should resolve some issues with ~bitmask that Linus discovered.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-cwckhbrib2aux1qbteaebij0@git.kernel.org
Diffstat (limited to 'drivers/rtc/rtc-twl.c')
0 files changed, 0 insertions, 0 deletions