mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
EDAC: Correct MiB_TO_PAGES() macro
This corrects the misprint introduced when moving '#if
PAGE_SHIFT' from i7core_edac.c to edac_core.h (commit
e9144601d3
)
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Andrei Konovalov <akonovalov@mvista.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
bb31b3122c
commit
76f04f2591
@ -41,10 +41,10 @@
|
||||
#define MC_PROC_NAME_MAX_LEN 7
|
||||
|
||||
#if PAGE_SHIFT < 20
|
||||
#define PAGES_TO_MiB( pages ) ( ( pages ) >> ( 20 - PAGE_SHIFT ) )
|
||||
#define MiB_TO_PAGES(mb) ((mb) >> (20 - PAGE_SHIFT))
|
||||
#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 PAGES_TO_MiB(pages) ((pages) << (PAGE_SHIFT - 20))
|
||||
#define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20))
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user