Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361875
b: refs/heads/master
c: f9294e9
h: refs/heads/master
i:
  361873: 853814d
  361871: 6f0fd9c
v: v3
  • Loading branch information
Stuart Yoder authored and Stephen Rothwell committed Mar 25, 2013
1 parent b91c137 commit da3f06c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 087aa036eb79f24b856893190359ba812b460f45
refs/heads/master: f9294e989fa6f2990da155242db03cea1550cac8
6 changes: 6 additions & 0 deletions trunk/arch/powerpc/kernel/epapr_paravirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
#include <asm/code-patching.h>
#include <asm/machdep.h>

#if !defined(CONFIG_64BIT) || defined(CONFIG_PPC_BOOK3E_64)
extern void epapr_ev_idle(void);
extern u32 epapr_ev_idle_start[];
#endif

bool epapr_paravirt_enabled;

Expand All @@ -47,11 +49,15 @@ static int __init epapr_paravirt_init(void)

for (i = 0; i < (len / 4); i++) {
patch_instruction(epapr_hypercall_start + i, insts[i]);
#if !defined(CONFIG_64BIT) || defined(CONFIG_PPC_BOOK3E_64)
patch_instruction(epapr_ev_idle_start + i, insts[i]);
#endif
}

#if !defined(CONFIG_64BIT) || defined(CONFIG_PPC_BOOK3E_64)
if (of_get_property(hyper_node, "has-idle", NULL))
ppc_md.power_save = epapr_ev_idle;
#endif

epapr_paravirt_enabled = true;

Expand Down

0 comments on commit da3f06c

Please sign in to comment.