Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196589
b: refs/heads/master
c: 6fe9d1f
h: refs/heads/master
i:
  196587: ba1fd16
v: v3
  • Loading branch information
Vaidyanathan Srinivasan authored and Benjamin Herrenschmidt committed Apr 7, 2010
1 parent bd57339 commit 6e1a4e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 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: 9c7cc234dc5edf5379fbbab4973f6704f59bc57b
refs/heads/master: 6fe9d1facb5346a615f9b571df3b91593afb29c3
1 change: 1 addition & 0 deletions trunk/arch/powerpc/include/asm/hvcall.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
#define H_JOIN 0x298
#define H_VASI_STATE 0x2A4
#define H_ENABLE_CRQ 0x2B0
#define H_GET_EM_PARMS 0x2B8
#define H_SET_MPP 0x2D0
#define H_GET_MPP 0x2D4
#define MAX_HCALL_OPCODE H_GET_MPP
Expand Down
12 changes: 11 additions & 1 deletion trunk/arch/powerpc/kernel/lparcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <asm/vio.h>
#include <asm/mmu.h>

#define MODULE_VERS "1.8"
#define MODULE_VERS "1.9"
#define MODULE_NAME "lparcfg"

/* #define LPARCFG_DEBUG */
Expand Down Expand Up @@ -487,6 +487,14 @@ static void splpar_dispatch_data(struct seq_file *m)
seq_printf(m, "dispatch_dispersions=%lu\n", dispatch_dispersions);
}

static void parse_em_data(struct seq_file *m)
{
unsigned long retbuf[PLPAR_HCALL_BUFSIZE];

if (plpar_hcall(H_GET_EM_PARMS, retbuf) == H_SUCCESS)
seq_printf(m, "power_mode_data=%016lx\n", retbuf[0]);
}

static int pseries_lparcfg_data(struct seq_file *m, void *v)
{
int partition_potential_processors;
Expand Down Expand Up @@ -541,6 +549,8 @@ static int pseries_lparcfg_data(struct seq_file *m, void *v)

seq_printf(m, "slb_size=%d\n", mmu_slb_size);

parse_em_data(m);

return 0;
}

Expand Down

0 comments on commit 6e1a4e6

Please sign in to comment.