|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [xenppc-unstable] [POWERPC][XEN] Adjust DEC correctly
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID f25517f71f40b1636b0b7eb8dfefad231053e569
# Parent e79db5ceaa18474ee9a2a60734e64b9ee551e501
[POWERPC][XEN] Adjust DEC correctly
If DEC would have expired we now restore DEC to 0 so it will fire.
The Domain loses info about how late DEC was from looking at DEC but I
don't think anyone tracks that.
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
xen/arch/powerpc/powerpc64/domain.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
diff -r e79db5ceaa18 -r f25517f71f40 xen/arch/powerpc/powerpc64/domain.c
--- a/xen/arch/powerpc/powerpc64/domain.c Fri Sep 01 11:42:51 2006 -0400
+++ b/xen/arch/powerpc/powerpc64/domain.c Fri Sep 01 12:12:43 2006 -0400
@@ -55,7 +55,10 @@ void load_sprs(struct vcpu *v)
/* adjust the DEC value to account for cycles while not
* running this OS */
timebase_delta = mftb() - v->arch.timebase;
- v->arch.dec -= timebase_delta;
+ if (timebase_delta > v->arch.dec)
+ v->arch.dec = 0;
+ else
+ v->arch.dec -= timebase_delta;
}
/* XXX evaluate all isyncs in segment code */
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [xenppc-unstable] [POWERPC][XEN] Adjust DEC correctly,
Xen patchbot-xenppc-unstable <=
|
|
|
|
|