patch-2.4.0-test11 linux/include/asm-ppc/pgalloc.h
Next file: linux/include/asm-ppc/pgtable.h
Previous file: linux/include/asm-ppc/pci.h
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Sat Nov 11 18:23:11 2000
- Orig file:
v2.4.0-test10/linux/include/asm-ppc/pgalloc.h
- Orig date:
Mon Apr 24 13:39:36 2000
diff -u --recursive --new-file v2.4.0-test10/linux/include/asm-ppc/pgalloc.h linux/include/asm-ppc/pgalloc.h
@@ -1,3 +1,4 @@
+#ifdef __KERNEL__
#ifndef _PPC_PGALLOC_H
#define _PPC_PGALLOC_H
@@ -51,33 +52,6 @@
extern void __bad_pte(pmd_t *pmd);
-extern inline void set_pgdir(unsigned long address, pgd_t entry)
-{
- struct task_struct * p;
- pgd_t *pgd;
-#ifdef CONFIG_SMP
- int i;
-#endif
-
- read_lock(&tasklist_lock);
- for_each_task(p) {
- if (!p->mm)
- continue;
- *pgd_offset(p->mm,address) = entry;
- }
- read_unlock(&tasklist_lock);
-#ifndef CONFIG_SMP
- for (pgd = (pgd_t *)pgd_quicklist; pgd; pgd = (pgd_t *)*(unsigned long *)pgd)
- pgd[address >> PGDIR_SHIFT] = entry;
-#else
- /* To pgd_alloc/pgd_free, one holds master kernel lock and so does our callee, so we can
- modify pgd caches of other CPUs as well. -jj */
- for (i = 0; i < NR_CPUS; i++)
- for (pgd = (pgd_t *)cpu_data[i].pgd_cache; pgd; pgd = (pgd_t *)*(unsigned long *)pgd)
- pgd[address >> PGDIR_SHIFT] = entry;
-#endif
-}
-
/* We don't use pmd cache, so this is a dummy routine */
extern __inline__ pmd_t *get_pmd_fast(void)
{
@@ -200,3 +174,4 @@
extern int do_check_pgt_cache(int, int);
#endif /* _PPC_PGALLOC_H */
+#endif /* __KERNEL__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)