Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6214
b: refs/heads/master
c: bef5686
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Aug 29, 2005
1 parent bbd6edd commit 01b1c5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71e1f55ad4bc4c8bcfe696400a950a34263a750e
refs/heads/master: bef5686229810709091fb6e505071f4aa41e3760
6 changes: 0 additions & 6 deletions trunk/arch/ppc64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,6 @@ config GENERIC_HARDIRQS
bool
default y

config MSCHUNKS
bool
depends on PPC_ISERIES
default y


config PPC_RTAS
bool
depends on PPC_PSERIES || PPC_BPA
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/ppc64/configs/iSeries_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ CONFIG_HZ_100=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_GENERIC_HARDIRQS=y
CONFIG_MSCHUNKS=y
CONFIG_LPARCFG=y
CONFIG_SECCOMP=y
CONFIG_ISA_DMA_API=y
Expand Down
19 changes: 5 additions & 14 deletions trunk/include/asm-ppc64/abs_addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
#include <asm/page.h>
#include <asm/prom.h>
#include <asm/lmb.h>

#ifdef CONFIG_MSCHUNKS
#include <asm/firmware.h>

struct mschunks_map {
unsigned long num_chunks;
Expand Down Expand Up @@ -48,6 +47,10 @@ static inline unsigned long phys_to_abs(unsigned long pa)
{
unsigned long chunk;

/* This is a no-op on non-iSeries */
if (!firmware_has_feature(FW_FEATURE_ISERIES))
return pa;

chunk = addr_to_chunk(pa);

if (chunk < mschunks_map.num_chunks)
Expand All @@ -56,18 +59,6 @@ static inline unsigned long phys_to_abs(unsigned long pa)
return chunk_to_addr(chunk) + (pa & MSCHUNKS_OFFSET_MASK);
}

#else /* !CONFIG_MSCHUNKS */

#define chunk_to_addr(chunk) ((unsigned long)(chunk))
#define addr_to_chunk(addr) (addr)
#define chunk_offset(addr) (0)
#define abs_chunk(pchunk) (pchunk)

#define phys_to_abs(pa) (pa)
#define physRpn_to_absRpn(rpn) (rpn)

#endif /* !CONFIG_MSCHUNKS */

/* Convenience macros */
#define virt_to_abs(va) phys_to_abs(__pa(va))
#define abs_to_virt(aa) __va(aa)
Expand Down

0 comments on commit 01b1c5c

Please sign in to comment.