patch-2.3.99-pre6 linux/include/asm-ppc/pgalloc.h
Next file: linux/include/asm-ppc/pgtable.h
Previous file: linux/include/asm-ppc/hardirq.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Mon Apr 24 13:39:36 2000
- Orig file:
v2.3.99-pre5/linux/include/asm-ppc/pgalloc.h
- Orig date:
Tue Dec 7 09:32:51 1999
diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-ppc/pgalloc.h linux/include/asm-ppc/pgalloc.h
@@ -1,6 +1,7 @@
#ifndef _PPC_PGALLOC_H
#define _PPC_PGALLOC_H
+#include <linux/config.h>
#include <linux/threads.h>
#include <asm/processor.h>
@@ -18,7 +19,7 @@
* I need to generalize this so we can use it for other arch's as well.
* -- Cort
*/
-#ifdef __SMP__
+#ifdef CONFIG_SMP
#define quicklists cpu_data[smp_processor_id()]
#else
extern struct pgtable_cache_struct {
@@ -54,7 +55,7 @@
{
struct task_struct * p;
pgd_t *pgd;
-#ifdef __SMP__
+#ifdef CONFIG_SMP
int i;
#endif
@@ -65,7 +66,7 @@
*pgd_offset(p->mm,address) = entry;
}
read_unlock(&tasklist_lock);
-#ifndef __SMP__
+#ifndef CONFIG_SMP
for (pgd = (pgd_t *)pgd_quicklist; pgd; pgd = (pgd_t *)*(unsigned long *)pgd)
pgd[address >> PGDIR_SHIFT] = entry;
#else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)