File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ class IRQ_manager {
129129 return cycles_hlt_;
130130 }
131131
132- /* * Get the total number of cycles spent working **/
133- uint64_t cycles_active (){
134- return cycles_active_ ;
132+ /* * Get the total number of cycles since boot **/
133+ uint64_t cycles_total (){
134+ return cycles_total_ ;
135135 }
136136
137137private:
@@ -151,7 +151,7 @@ class IRQ_manager {
151151 MemBitmap irq_todo;
152152
153153 uint64_t & cycles_hlt_;
154- uint64_t & cycles_active_ ;
154+ uint64_t & cycles_total_ ;
155155
156156 static const char default_attr {static_cast <char >(0x8e )};
157157 static const uint16_t default_sel {0x8 };
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ IRQ_manager::IRQ_manager(uint8_t cpuid)
3131 : cycles_hlt_{Statman::get ()
3232 .create (Stat::UINT64, std::string (std::string (" cpu" ) + std::to_string (cpuid)
3333 + " .cycles_hlt" ).c_str () ).get_uint64 ()},
34- cycles_active_ {Statman::get ()
34+ cycles_total_ {Statman::get ()
3535 .create (Stat::UINT64,std::string (std::string (" cpu" ) + std::to_string (cpuid)
36- + " .cycles_active " ).c_str ()).get_uint64 ()}
36+ + " .cycles_total " ).c_str ()).get_uint64 ()}
3737{}
3838
3939uint8_t IRQ_manager::get_next_msix_irq ()
@@ -199,7 +199,7 @@ void IRQ_manager::notify()
199199
200200 (*counters[intr])++;
201201
202- cycles_active_ = OS::cycles_since_boot ();
202+ cycles_total_ = OS::cycles_since_boot ();
203203
204204 irq_todo.reset (intr);
205205 intr = irq_todo.first_set ();
@@ -217,5 +217,5 @@ void IRQ_manager::notify()
217217 " _irq_cb_return_location:" );
218218
219219 // Count sleep cycles
220- cycles_hlt_ += OS::cycles_since_boot () - cycles_active_ ;
220+ cycles_hlt_ += OS::cycles_since_boot () - cycles_total_ ;
221221}
You can’t perform that action at this time.
0 commit comments