It was broken on at least ppc32 & sparc32, and the debugging it
offered wasn't worth it any more anyway.
#endif /* CONFIG_HIGHMEM */
-#if defined(CONFIG_DEBUG_HIGHMEM) && defined(CONFIG_HIGHMEM)
-extern void check_highmem_ptes(void);
-#else
-static inline void check_highmem_ptes(void)
-{}
-#endif
-
/* when CONFIG_HIGHMEM is not set these will be plain clear/copy_page */
static inline void clear_user_highpage(struct page *page, unsigned long vaddr)
{
}
}
- check_highmem_ptes();
need_resched:
preempt_disable();
prev = current;
__blk_queue_bounce(q, bio_orig, pool);
}
-#if defined(CONFIG_DEBUG_HIGHMEM) && defined(CONFIG_HIGHMEM)
-void check_highmem_ptes(void)
-{
- int idx, type;
-
- preempt_disable();
- for (type = 0; type < KM_TYPE_NR; type++) {
- idx = type + KM_TYPE_NR*smp_processor_id();
- if (!pte_none(*(kmap_pte-idx))) {
- printk("scheduling with KM_TYPE %d held!\n", type);
- BUG();
- }
- }
- preempt_enable();
-}
-#endif
-
#if defined(HASHED_PAGE_VIRTUAL)
#define PA_HASH_ORDER 7