Searched refs:cycle_before (Results 1 – 2 of 2) sorted by relevance
18 register unsigned long cycle_before, cycle_count; in supervisor_thread_function() local27 cycle_before = csr_read(0xB00); in supervisor_thread_function()32 if (cycle_count > cycle_before) { in supervisor_thread_function()33 cycle_count -= cycle_before; in supervisor_thread_function()35 cycle_count += 0xFFFFFFFF - cycle_before; in supervisor_thread_function()
18 register unsigned long cycle_before, cycle_count; in user_thread_function() local27 cycle_before = csr_read(0xC00); in user_thread_function()32 if (cycle_count > cycle_before) { in user_thread_function()33 cycle_count -= cycle_before; in user_thread_function()35 cycle_count += 0xFFFFFFFF - cycle_before; in user_thread_function()