diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-27 12:24:05 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-27 12:24:05 -0400 |
commit | cb5c7980ab16c461a883ec7899675be57798d285 (patch) | |
tree | b84622d3d61b8e947062c03393822e24ad7f3f1b | |
parent | 544cbbaed4de962fb0e831e8799ab01c448ff37d (diff) |
powerpc: move iSeries_proc.c to powerpc/platforms/iseries
And renamed it to proc.c
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | arch/powerpc/platforms/iseries/Makefile | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/proc.c (renamed from arch/ppc64/kernel/iSeries_proc.c) | 10 | ||||
-rw-r--r-- | arch/ppc64/kernel/Makefile | 2 |
3 files changed, 9 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/iseries/Makefile b/arch/powerpc/platforms/iseries/Makefile index 3a9981a35e2..0bd671573c8 100644 --- a/arch/powerpc/platforms/iseries/Makefile +++ b/arch/powerpc/platforms/iseries/Makefile | |||
@@ -1 +1,2 @@ | |||
1 | obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o hvcall.o | 1 | obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o \ |
2 | hvcall.o proc.o | ||
diff --git a/arch/ppc64/kernel/iSeries_proc.c b/arch/powerpc/platforms/iseries/proc.c index 0fe3116eba2..d46b473ce4d 100644 --- a/arch/ppc64/kernel/iSeries_proc.c +++ b/arch/powerpc/platforms/iseries/proc.c | |||
@@ -1,5 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * iSeries_proc.c | ||
3 | * Copyright (C) 2001 Kyle A. Lucke IBM Corporation | 2 | * Copyright (C) 2001 Kyle A. Lucke IBM Corporation |
4 | * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen IBM Corporation | 3 | * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen IBM Corporation |
5 | * | 4 | * |
@@ -68,12 +67,15 @@ static int proc_titantod_show(struct seq_file *m, void *v) | |||
68 | unsigned long tb_ticks = (tb0 - startTb); | 67 | unsigned long tb_ticks = (tb0 - startTb); |
69 | unsigned long titan_jiffies = titan_usec / (1000000/HZ); | 68 | unsigned long titan_jiffies = titan_usec / (1000000/HZ); |
70 | unsigned long titan_jiff_usec = titan_jiffies * (1000000/HZ); | 69 | unsigned long titan_jiff_usec = titan_jiffies * (1000000/HZ); |
71 | unsigned long titan_jiff_rem_usec = titan_usec - titan_jiff_usec; | 70 | unsigned long titan_jiff_rem_usec = |
71 | titan_usec - titan_jiff_usec; | ||
72 | unsigned long tb_jiffies = tb_ticks / tb_ticks_per_jiffy; | 72 | unsigned long tb_jiffies = tb_ticks / tb_ticks_per_jiffy; |
73 | unsigned long tb_jiff_ticks = tb_jiffies * tb_ticks_per_jiffy; | 73 | unsigned long tb_jiff_ticks = tb_jiffies * tb_ticks_per_jiffy; |
74 | unsigned long tb_jiff_rem_ticks = tb_ticks - tb_jiff_ticks; | 74 | unsigned long tb_jiff_rem_ticks = tb_ticks - tb_jiff_ticks; |
75 | unsigned long tb_jiff_rem_usec = tb_jiff_rem_ticks / tb_ticks_per_usec; | 75 | unsigned long tb_jiff_rem_usec = |
76 | unsigned long new_tb_ticks_per_jiffy = (tb_ticks * (1000000/HZ))/titan_usec; | 76 | tb_jiff_rem_ticks / tb_ticks_per_usec; |
77 | unsigned long new_tb_ticks_per_jiffy = | ||
78 | (tb_ticks * (1000000/HZ))/titan_usec; | ||
77 | 79 | ||
78 | seq_printf(m, " titan elapsed = %lu uSec\n", titan_usec); | 80 | seq_printf(m, " titan elapsed = %lu uSec\n", titan_usec); |
79 | seq_printf(m, " tb elapsed = %lu ticks\n", tb_ticks); | 81 | seq_printf(m, " tb elapsed = %lu ticks\n", tb_ticks); |
diff --git a/arch/ppc64/kernel/Makefile b/arch/ppc64/kernel/Makefile index a4e5c5b86c7..271b71d20d1 100644 --- a/arch/ppc64/kernel/Makefile +++ b/arch/ppc64/kernel/Makefile | |||
@@ -22,7 +22,7 @@ pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o | |||
22 | 22 | ||
23 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) | 23 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) |
24 | 24 | ||
25 | obj-$(CONFIG_PPC_ISERIES) += iSeries_proc.o iSeries_htab.o \ | 25 | obj-$(CONFIG_PPC_ISERIES) += iSeries_htab.o \ |
26 | iSeries_iommu.o | 26 | iSeries_iommu.o |
27 | 27 | ||
28 | obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o i8259.o prom_init.o | 28 | obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o i8259.o prom_init.o |