[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.3] x86/mwait_idle: fix trace output



commit 8ce2638a2121e61e823e270d8c07fe6d4a70f2b1
Author:     Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
AuthorDate: Tue Jun 24 09:57:19 2014 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jun 24 09:57:19 2014 +0200

    x86/mwait_idle: fix trace output
    
    Use the C-state's type when tracing, not its index since the index is
    not set by the mwait_idle driver.
    
    Signed-off-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
    master commit: d17ac1d5433ba2c25d7fab11baba59173e339896
    master date: 2014-06-20 10:37:21 +0200
---
 xen/arch/x86/cpu/mwait-idle.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/cpu/mwait-idle.c b/xen/arch/x86/cpu/mwait-idle.c
index e0c9707..f504dfd 100644
--- a/xen/arch/x86/cpu/mwait-idle.c
+++ b/xen/arch/x86/cpu/mwait-idle.c
@@ -317,7 +317,7 @@ static void mwait_idle(void)
                lapic_timer_off();
 
        before = cpuidle_get_tick();
-       TRACE_4D(TRC_PM_IDLE_ENTRY, cx->idx, before, exp, pred);
+       TRACE_4D(TRC_PM_IDLE_ENTRY, cx->type, before, exp, pred);
 
        if (cpu_is_haltable(cpu))
                mwait_idle_with_hints(eax, MWAIT_ECX_INTERRUPT_BREAK);
@@ -326,7 +326,7 @@ static void mwait_idle(void)
 
        cstate_restore_tsc();
        trace_exit_reason(irq_traced);
-       TRACE_6D(TRC_PM_IDLE_EXIT, cx->idx, after,
+       TRACE_6D(TRC_PM_IDLE_EXIT, cx->type, after,
                irq_traced[0], irq_traced[1], irq_traced[2], irq_traced[3]);
 
        update_idle_stats(power, cx, before, after);
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.3

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.