changeset 598:d42b83dee819

L1: DSP CPU load measurement appears to be possible only on DSP >= 38
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 17 Aug 2014 16:52:06 +0000
parents 8be182dd9218
children a74230436958
files gsm-fw/L1/cfile/l1_sync.c gsm-fw/L1/cfile/l1_trace.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/cfile/l1_sync.c	Sun Aug 17 07:15:12 2014 +0000
+++ b/gsm-fw/L1/cfile/l1_sync.c	Sun Aug 17 16:52:06 2014 +0000
@@ -524,7 +524,7 @@
       l1_cpu_load_stop();
     #endif
 
-    #if (TRACE_TYPE == 1) || (TRACE_TYPE == 4)
+    #if ((TRACE_TYPE == 1) || (TRACE_TYPE == 4)) && (DSP >= 38)
       // DSP CPU load for TRACE_TYPE == 1 and 4 only
       if(trace_info.current_config->l1_dyn_trace & 1<<L1_DYN_TRACE_DSP_CPU_LOAD)
       {
--- a/gsm-fw/L1/cfile/l1_trace.c	Sun Aug 17 07:15:12 2014 +0000
+++ b/gsm-fw/L1/cfile/l1_trace.c	Sun Aug 17 16:52:06 2014 +0000
@@ -7739,6 +7739,7 @@
   /* DSP CPU load                                                        */
   /***********************************************************************/
 
+#if (DSP >= 38)
   if (trace_info.current_config->l1_dyn_trace & 1<<L1_DYN_TRACE_DSP_CPU_LOAD)
   {
     if(l1_dsp_cpu_load_trace_flag)
@@ -7769,6 +7770,7 @@
       l1_dsp_cpu_load_trace_flag = 0;
     }
   }
+#endif	// DSP >= 38
 
   /***********************************************************************/
   /* L1A messages                                                        */