dm: fix printk() rate limiting code
[pandora-kernel.git] / include / linux / hugetlb.h
index c5e40ff..533471d 100644 (file)
@@ -344,15 +344,14 @@ static inline pgoff_t basepage_index(struct page *page)
        return __basepage_index(page);
 }
 
-static inline bool hugepages_supported(void)
-{
-       /*
-        * Some platform decide whether they support huge pages at boot
-        * time. On these, such as powerpc, HPAGE_SHIFT is set to 0 when
-        * there is no such support
-        */
-       return HPAGE_SHIFT != 0;
-}
+#ifndef hugepages_supported
+/*
+ * Some platform decide whether they support huge pages at boot
+ * time. Some of them, such as powerpc, set HPAGE_SHIFT to 0
+ * when there is no such support
+ */
+#define hugepages_supported() (HPAGE_SHIFT != 0)
+#endif
 
 #else
 struct hstate {};