diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-10 20:26:35 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-24 11:20:36 -0200 |
commit | e9144601d364d5b81f3e63949337f8507eb58dca (patch) | |
tree | 6be0e0bb2e13e6f0c1bac9c37a6243707e6fa53e /drivers/edac/edac_core.h | |
parent | 1288c18f48d9bf373dbed6b688cde36dc970b1ed (diff) | |
download | linux-3.10-e9144601d364d5b81f3e63949337f8507eb58dca.tar.gz linux-3.10-e9144601d364d5b81f3e63949337f8507eb58dca.tar.bz2 linux-3.10-e9144601d364d5b81f3e63949337f8507eb58dca.zip |
i7core_edac: move #if PAGE_SHIFT to edac_core.h
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/edac_core.h')
-rw-r--r-- | drivers/edac/edac_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index 69eb1c268f9..d7ca43a828b 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -42,8 +42,10 @@ #if PAGE_SHIFT < 20 #define PAGES_TO_MiB( pages ) ( ( pages ) >> ( 20 - PAGE_SHIFT ) ) +#define MiB_TO_PAGES(mb) ((mb) >> (20 - PAGE_SHIFT)) #else /* PAGE_SHIFT > 20 */ #define PAGES_TO_MiB( pages ) ( ( pages ) << ( PAGE_SHIFT - 20 ) ) +#define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20)) #endif #define edac_printk(level, prefix, fmt, arg...) \ |