changeset 1901:b74327adede7 draft

merge
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Thu, 16 Jan 2014 18:07:30 +0900
parents 09ad06dae9fb (current diff) 5e17ab506299 (diff)
children ef52a2b07344
files TaskManager/kernel/ppe/CpuThreads.cc
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/CpuThreads.cc	Thu Jan 16 18:02:56 2014 +0900
+++ b/TaskManager/kernel/ppe/CpuThreads.cc	Thu Jan 16 18:07:30 2014 +0900
@@ -31,7 +31,7 @@
 CpuThreads::~CpuThreads()
 {
     memaddr mail = (memaddr)MY_SPE_COMMAND_EXIT;
-    
+
     for (int i = 0; i < cpu_num+io_num; i++) {
         send_mail(i+id_offset, 1, &mail);
     }
@@ -67,13 +67,13 @@
     SchedRegister(StartProfile);
     if (argt->cpuid >= argt->cpu_num) {
         // set IO thread priory maximum
-	int policy;
-	struct sched_param param;
+        int policy;
+        struct sched_param param;
         pthread_getschedparam(pthread_self(), &policy, &param);
         param.sched_priority = 1;
         pthread_setschedparam(pthread_self(), policy, &param);
     }
-    
+
     argt->wait->sem_v();        //準備完了したスレッドができるたびに+1していく
 
     c_scheduler->run(new SchedNop());
--- a/example/fileread/main.cc	Thu Jan 16 18:02:56 2014 +0900
+++ b/example/fileread/main.cc	Thu Jan 16 18:07:30 2014 +0900
@@ -16,7 +16,7 @@
 static double ed_time;
 static int spe_num = 1;
 int divide_read_flag = 0;
-static CPU_TYPE spe_cpu = SPE_ANY;
+static CPU_TYPE spe_cpu = IO_0;
 static int DIVISION_SIZE = 4096*4;
 
 extern TaskManager *manager;