Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91441
b: refs/heads/master
c: 96366a8
h: refs/heads/master
i:
  91439: f7f39a1
v: v3
  • Loading branch information
Tony Breeds authored and Paul Mackerras committed Mar 25, 2008
1 parent 35bef0e commit 085ce59
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 71e91a0abb839f8d2372236d8fe0513c295ec717
refs/heads/master: 96366a8d3f17ee964802378d4a1f51fda86f070e
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/platforms/pseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,15 @@ static void pseries_dedicated_idle_sleep(void)
{
unsigned int cpu = smp_processor_id();
unsigned long start_snooze;
unsigned long in_purr, out_purr;

/*
* Indicate to the HV that we are idle. Now would be
* a good time to find other work to dispatch.
*/
get_lppaca()->idle = 1;
get_lppaca()->donate_dedicated_cpu = 1;
in_purr = mfspr(SPRN_PURR);

/*
* We come in with interrupts disabled, and need_resched()
Expand Down Expand Up @@ -432,6 +434,8 @@ static void pseries_dedicated_idle_sleep(void)

out:
HMT_medium();
out_purr = mfspr(SPRN_PURR);
get_lppaca()->wait_state_cycles += out_purr - in_purr;
get_lppaca()->donate_dedicated_cpu = 0;
get_lppaca()->idle = 0;
}
Expand Down

0 comments on commit 085ce59

Please sign in to comment.