diff options
author | Paul Mackerras <paulus@samba.org> | 2006-03-27 15:06:20 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-27 15:06:20 +1100 |
commit | fbd7740fdfdf9475f92287a84085a1913541cd5d (patch) | |
tree | f8719f3c3c45b498c51aaf290a682468726beb55 /include/asm-powerpc/hvcall.h | |
parent | a0652fc9a28c3ef8cd59264bfcb089c44d1b0e06 (diff) | |
download | kernel_samsung_aries-fbd7740fdfdf9475f92287a84085a1913541cd5d.zip kernel_samsung_aries-fbd7740fdfdf9475f92287a84085a1913541cd5d.tar.gz kernel_samsung_aries-fbd7740fdfdf9475f92287a84085a1913541cd5d.tar.bz2 |
powerpc: Simplify pSeries idle loop
Since pSeries only wants to do something different in the idle loop when
there is no work to do, we can simplify the code by implementing
ppc_md.power_save functions instead of complete idle loops. There are
two versions: one for shared-processor partitions and one for dedicated-
processor partitions.
With this we also do a cede_processor() call on dedicated processor
partitions if the poll_pending() call indicates that the hypervisor
has work it wants to do.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/hvcall.h')
-rw-r--r-- | include/asm-powerpc/hvcall.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/hvcall.h b/include/asm-powerpc/hvcall.h index 38ca9ad..b72c04f 100644 --- a/include/asm-powerpc/hvcall.h +++ b/include/asm-powerpc/hvcall.h @@ -9,6 +9,7 @@ #define H_Closed 2 /* Resource closed */ #define H_Constrained 4 /* Resource request constrained to max allowed */ #define H_InProgress 14 /* Kind of like busy */ +#define H_Pending 17 /* returned from H_POLL_PENDING */ #define H_Continue 18 /* Returned from H_Join on success */ #define H_LongBusyStartRange 9900 /* Start of long busy range */ #define H_LongBusyOrder1msec 9900 /* Long busy, hint that 1msec is a good time to retry */ |