Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76f04f25 authored by Andrei Konovalov's avatar Andrei Konovalov Committed by Borislav Petkov
Browse files

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
e9144601)

Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarAndrei Konovalov <akonovalov@mvista.com>
Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent bb31b312
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@

#if PAGE_SHIFT < 20
#define PAGES_TO_MiB(pages)	((pages) >> (20 - PAGE_SHIFT))
#define MiB_TO_PAGES(mb)	((mb) >> (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))