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