# HG changeset patch # User Masataka Kohagura # Date 1389863250 -32400 # Node ID b74327adede76876307e03d5497896b936d30b98 # Parent 09ad06dae9fbadd791c3c623b5bdd31f0a61180d# Parent 5e17ab506299ca56aa86c1eace4eeb69fedc5695 merge diff -r 09ad06dae9fb -r b74327adede7 TaskManager/kernel/ppe/CpuThreads.cc --- 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, ¶m); param.sched_priority = 1; pthread_setschedparam(pthread_self(), policy, ¶m); } - + argt->wait->sem_v(); //準備完了したスレッドができるたびに+1していく c_scheduler->run(new SchedNop()); diff -r 09ad06dae9fb -r b74327adede7 example/fileread/main.cc --- 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;