mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00: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
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue