mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
do context switch only if gpu has kernel
This commit is contained in:
@@ -21,8 +21,7 @@ void Scheduler::schedule_next()
|
||||
VGpu* next;
|
||||
if ((next = static_cast<VGpu*>(_run_list.first())))
|
||||
{
|
||||
// set vgpu and change to its context
|
||||
this->dispatch(*next);
|
||||
// set vgpu
|
||||
_curr_vgpu = next;
|
||||
|
||||
// move vgpu to end of list
|
||||
@@ -74,6 +73,9 @@ void Scheduler::handle_gpu_event()
|
||||
|
||||
idle = false;
|
||||
|
||||
// switch context
|
||||
dispatch(*_curr_vgpu);
|
||||
|
||||
// set frequency
|
||||
gpgpudriver.setMaxFreq();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user