Mercurial > hg > Game > Cerium
changeset 1312:d0c14093e019 draft
commented out
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 15 Dec 2011 17:00:07 +0900 |
parents | ad17daa18d63 |
children | a62cde2aaf7c |
files | TaskManager/Fifo/FifoDmaManager.cc |
diffstat | 1 files changed, 20 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Fifo/FifoDmaManager.cc Thu Dec 15 16:49:23 2011 +0900 +++ b/TaskManager/Fifo/FifoDmaManager.cc Thu Dec 15 17:00:07 2011 +0900 @@ -11,15 +11,15 @@ { if (size == 0) return buf; - unsigned long long wait = 0; - (this->*start_dmawait_profile)(); + //unsigned long long wait = 0; + //(this->*start_dmawait_profile)(); if (s) buf = s->manager->allocate(size); memcpy(buf, (void*)addr, size); - (this->*end_dmawait_profile)(&wait); - global_load_time += wait; - dma_load_time += wait; + //(this->*end_dmawait_profile)(&wait); + //global_load_time += wait; + //dma_load_time += wait; return buf; } @@ -36,14 +36,14 @@ { if (size == 0) return buf; - unsigned long long wait = 0; - (this->*start_dmawait_profile)(); + //unsigned long long wait = 0; + //(this->*start_dmawait_profile)(); memcpy((void*)addr, buf, size); - (this->*end_dmawait_profile)(&wait); - global_store_time += wait; - dma_store_time += wait; + //(this->*end_dmawait_profile)(&wait); + //global_store_time += wait; + //dma_store_time += wait; return buf; } @@ -60,8 +60,8 @@ void * FifoDmaManager::dma_loadList(Scheduler *s, ListDataPtr list, void *buff, uint32 mask) { - unsigned long long wait = 0; - (this->*start_dmawait_profile)(); + //unsigned long long wait = 0; + //(this->*start_dmawait_profile)(); int list_size = list->length; long bound; @@ -75,9 +75,9 @@ bound += elm->size; } - (this->*end_dmawait_profile)(&wait); - global_load_time += wait; - dma_loadList_time += wait; + //(this->*end_dmawait_profile)(&wait); + //global_load_time += wait; + //dma_loadList_time += wait; return buff; } @@ -93,8 +93,8 @@ void FifoDmaManager::dma_storeList(ListDataPtr list, void *buff, uint32 mask) { - unsigned long long wait = 0; - (this->*start_dmawait_profile)(); + //unsigned long long wait = 0; + //(this->*start_dmawait_profile)(); int list_size = list->length; memaddr bound; @@ -107,9 +107,9 @@ bound += elm->size; } - (this->*end_dmawait_profile)(&wait); - global_store_time += wait; - dma_storeList_time += wait; + //(this->*end_dmawait_profile)(&wait); + //global_store_time += wait; + //dma_storeList_time += wait; } void