Commit ac22c842 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

[PATCH] ppc64: remove /proc/ppc64/{naca,paca/xx}

This patch removes the (unused) /proc entries for the naca and the (per cpu)
pacas.  Also it removes a lot of no longer necessary includes of <asm/naca.h>.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ca786ecd
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/ppcdebug.h> #include <asm/ppcdebug.h>
#include <asm/naca.h>
#include <asm/iommu.h> #include <asm/iommu.h>
#include <asm/iSeries/HvCallPci.h> #include <asm/iSeries/HvCallPci.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <asm/paca.h> #include <asm/paca.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/time.h> #include <asm/time.h>
#include <asm/naca.h>
#include <asm/iSeries/ItLpPaca.h> #include <asm/iSeries/ItLpPaca.h>
#include <asm/iSeries/ItLpQueue.h> #include <asm/iSeries/ItLpQueue.h>
#include <asm/iSeries/HvCallXm.h> #include <asm/iSeries/HvCallXm.h>
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/smp.h> #include <asm/smp.h>
#include <asm/naca.h>
#include <asm/paca.h> #include <asm/paca.h>
#include <asm/iSeries/LparData.h> #include <asm/iSeries/LparData.h>
#include <asm/iSeries/HvCall.h> #include <asm/iSeries/HvCall.h>
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/naca.h>
#include <asm/iommu.h> #include <asm/iommu.h>
#include <asm/rtas.h> #include <asm/rtas.h>
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/smp.h> #include <asm/smp.h>
#include <asm/naca.h>
#include <asm/paca.h> #include <asm/paca.h>
#include <asm/time.h> #include <asm/time.h>
#include <asm/ppcdebug.h> #include <asm/ppcdebug.h>
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/ppcdebug.h> #include <asm/ppcdebug.h>
#include <asm/naca.h>
#include <asm/iommu.h> #include <asm/iommu.h>
#include "pci.h" #include "pci.h"
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/naca.h>
#include <asm/paca.h>
#include <asm/systemcfg.h> #include <asm/systemcfg.h>
#include <asm/rtas.h> #include <asm/rtas.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -57,26 +55,6 @@ static struct file_operations ofdt_fops = { ...@@ -57,26 +55,6 @@ static struct file_operations ofdt_fops = {
}; };
#endif #endif
/*
* NOTE: since paca data is always in flux the values will never be a
* consistant set.
*/
static void __init proc_create_paca(struct proc_dir_entry *dir, int num)
{
struct proc_dir_entry *ent;
struct paca_struct *lpaca = paca + num;
char buf[16];
sprintf(buf, "%02x", num);
ent = create_proc_entry(buf, S_IRUSR, dir);
if (ent) {
ent->nlink = 1;
ent->data = lpaca;
ent->size = 4096;
ent->proc_fops = &page_map_fops;
}
}
/* /*
* Create the ppc64 and ppc64/rtas directories early. This allows us to * Create the ppc64 and ppc64/rtas directories early. This allows us to
* assume that they have been previously created in drivers. * assume that they have been previously created in drivers.
...@@ -104,17 +82,8 @@ core_initcall(proc_ppc64_create); ...@@ -104,17 +82,8 @@ core_initcall(proc_ppc64_create);
static int __init proc_ppc64_init(void) static int __init proc_ppc64_init(void)
{ {
unsigned long i;
struct proc_dir_entry *pde; struct proc_dir_entry *pde;
pde = create_proc_entry("ppc64/naca", S_IRUSR, NULL);
if (!pde)
return 1;
pde->nlink = 1;
pde->data = naca;
pde->size = 4096;
pde->proc_fops = &page_map_fops;
pde = create_proc_entry("ppc64/systemcfg", S_IFREG|S_IRUGO, NULL); pde = create_proc_entry("ppc64/systemcfg", S_IFREG|S_IRUGO, NULL);
if (!pde) if (!pde)
return 1; return 1;
...@@ -123,13 +92,6 @@ static int __init proc_ppc64_init(void) ...@@ -123,13 +92,6 @@ static int __init proc_ppc64_init(void)
pde->size = 4096; pde->size = 4096;
pde->proc_fops = &page_map_fops; pde->proc_fops = &page_map_fops;
/* /proc/ppc64/paca/XX -- raw paca contents. Only readable to root */
pde = proc_mkdir("ppc64/paca", NULL);
if (!pde)
return 1;
for_each_cpu(i)
proc_create_paca(pde, i);
#ifdef CONFIG_PPC_PSERIES #ifdef CONFIG_PPC_PSERIES
if ((systemcfg->platform & PLATFORM_PSERIES)) if ((systemcfg->platform & PLATFORM_PSERIES))
proc_ppc64_create_ofdt(); proc_ppc64_create_ofdt();
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/naca.h>
#include <asm/pci.h> #include <asm/pci.h>
#include <asm/iommu.h> #include <asm/iommu.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/smp.h> #include <asm/smp.h>
#include <asm/naca.h>
#include <asm/paca.h> #include <asm/paca.h>
#include <asm/time.h> #include <asm/time.h>
#include <asm/ppcdebug.h> #include <asm/ppcdebug.h>
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#include <asm/smp.h> #include <asm/smp.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/tlb.h> #include <asm/tlb.h>
#include <asm/naca.h>
#include <asm/eeh.h> #include <asm/eeh.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/mmzone.h> #include <asm/mmzone.h>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/mmu_context.h> #include <asm/mmu_context.h>
#include <asm/paca.h> #include <asm/paca.h>
#include <asm/naca.h>
#include <asm/cputable.h> #include <asm/cputable.h>
extern void slb_allocate(unsigned long ea); extern void slb_allocate(unsigned long ea);
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/mmu_context.h> #include <asm/mmu_context.h>
#include <asm/paca.h> #include <asm/paca.h>
#include <asm/naca.h>
#include <asm/cputable.h> #include <asm/cputable.h>
/* Both the segment table and SLB code uses the following cache */ /* Both the segment table and SLB code uses the following cache */
......
...@@ -24,11 +24,9 @@ ...@@ -24,11 +24,9 @@
#include <asm/page.h> #include <asm/page.h>
#include <asm/abs_addr.h> #include <asm/abs_addr.h>
#include <asm/naca.h>
#include <asm/iSeries/ItLpNaca.h> #include <asm/iSeries/ItLpNaca.h>
#include <asm/iSeries/ItLpPaca.h> #include <asm/iSeries/ItLpPaca.h>
#include <asm/iSeries/ItLpRegSave.h> #include <asm/iSeries/ItLpRegSave.h>
#include <asm/paca.h>
#include <asm/iSeries/HvReleaseData.h> #include <asm/iSeries/HvReleaseData.h>
#include <asm/iSeries/LparMap.h> #include <asm/iSeries/LparMap.h>
#include <asm/iSeries/ItVpdAreas.h> #include <asm/iSeries/ItVpdAreas.h>
......
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