Makefile cleanup: removed dependency on CORTEX_A15 compile file flag, updated sources...
[keystone-rtos/netapi.git] / ti / runtime / netapi / test / net_test.c
index 87f2adfafef0fdbeaa0c27f832087675303b530b..99287fef176135d5437e686fcd7e02afcae2e634 100755 (executable)
@@ -41,7 +41,6 @@
 
  *****************************************************************************/
 
-
 #include "net_test.h"
 #include "ti/drv/nwal/test/fw_rm.h"
 #include <signal.h>
@@ -54,7 +53,6 @@ extern paSysStats_t netcp_stats;
 
 netTestConfig_t netTestCfg;
 static netTestConfigFile_t config_file;
-
 char    input_file_name[] = "/etc/netapi/net_test_config.txt";
 nwal_RetValue       nwalRetVal;
 Pktlib_HeapHandle   ourHeap;
@@ -976,11 +974,11 @@ void slow_path_thread(uint32_t index)
 
     CPU_ZERO( &cpu_set);
     printf("slow_path_thread: settting up for thread number %d\n", thread_num);
-#ifdef CORTEX_A15
+#ifdef CORTEX_A8
     for (i = netTestCfg.sp_proc_start[index]; i <= netTestCfg.sp_proc_end[index];i++)
     {
         printf("slow_path_thread: setting cpu %d to cpu_set\n", i);
-        CPU_SET( i, &cpu_set);
+        CPU_SET( 0, &cpu_set);
     }
     hplib_utilSetupThread(thread_num, &cpu_set);
 #else
@@ -1025,19 +1023,19 @@ void fast_path_thread(uint32_t index)
     CPU_ZERO( &cpu_set);
     printf("fast_path_thread: settting up for thread number %d\n", netTestCfg.fp_thread_num[index]);
     thread_num = netTestCfg.fp_thread_num[index];
-#ifdef CORTEX_A15
+#ifdef CORTEX_A8
     for (i = netTestCfg.fp_proc_start[index]; i <= netTestCfg.fp_proc_end[index];i++)
     {
-        printf("fast_path_thread: start core %d, end core %d\n",
-                netTestCfg.fp_proc_start[index],
-                netTestCfg.fp_proc_end[index]);
         printf("fast_path_thread: setting cpu %d to cpu_set\n", i);
-        CPU_SET( i, &cpu_set);
+        CPU_SET( 0, &cpu_set);
     }
     hplib_utilSetupThread(thread_num, &cpu_set);
 #else
     for (i = netTestCfg.fp_proc_start[index]; i <= netTestCfg.fp_proc_end[index];i++)
     {
+        printf("fast_path_thread: start core %d, end core %d\n",
+                netTestCfg.fp_proc_start[index],
+                netTestCfg.fp_proc_end[index]);
         printf("fast_path_thread: setting cpu %d to cpu_set\n", i);
         CPU_SET( i, &cpu_set);
     }