Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2003-06-13 21:15:30 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-06-13 21:15:30 -0700
commitf3d844bce28bb95b18af48cd634f75ea6454530b (patch)
tree72ef5d4f0d23703abd7b4b2acdc6404685133b80
parentf3d302d93630d06be4b5e1d9468878914434945c (diff)
[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.
-rw-r--r--include/linux/highmem.h7
-rw-r--r--kernel/sched.c1
-rw-r--r--mm/highmem.c17
3 files changed, 0 insertions, 25 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h
index 3bc7bcb3c252..4cd2f596e705 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
@@ -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)
{
diff --git a/kernel/sched.c b/kernel/sched.c
index 28d7fb9fee73..79c8794c1769 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1258,7 +1258,6 @@ asmlinkage void schedule(void)
}
}
- check_highmem_ptes();
need_resched:
preempt_disable();
prev = current;
diff --git a/mm/highmem.c b/mm/highmem.c
index 8fb8c01be3b6..4dfd591ea60a 100644
--- a/mm/highmem.c
+++ b/mm/highmem.c
@@ -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