Commit f3d844bc authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

[PATCH] Nuke check_highmem_ptes()

It was broken on at least ppc32 & sparc32, and the debugging it
offered wasn't worth it any more anyway.
parent f3d302d9
......@@ -32,13 +32,6 @@ static inline void *kmap(struct page *page)
#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)
{
......
......@@ -1258,7 +1258,6 @@ asmlinkage void schedule(void)
}
}
check_highmem_ptes();
need_resched:
preempt_disable();
prev = current;
......
......@@ -472,23 +472,6 @@ void blk_queue_bounce(request_queue_t *q, struct bio **bio_orig)
__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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment