fix ptimer

This commit is contained in:
starfrost013
2024-12-29 19:37:19 +00:00
parent caa33123c6
commit 56a5522aa6
2 changed files with 1 additions and 14 deletions

View File

@@ -934,17 +934,6 @@ void* nv3_init(const device_t *info)
nv_log("NV3: Initialising timers...\n");
/*
// These only get turned on when the requisite registers are twiddled
timer_add(&nv3->nvbase.pixel_clock_timer, nv3_pramdac_pixel_clock_poll, nv3, false);
nv_log("NV3: Pixel clock OK. Will be started when the VBIOS tells us to start\n");
timer_add(&nv3->nvbase.memory_clock_timer, nv3_pramdac_memory_clock_poll, nv3, false);
nv_log("NV3: Memory clock OK. Will be started when the VBIOS tells us to start\n");
*/
return nv3;
}

View File

@@ -62,8 +62,6 @@ void nv3_pramdac_memory_clock_poll()
// Let's hope qeeg was right here.
nv3_ptimer_tick();
//timer_on_auto(&nv3_poll->nvbase.memory_clock_timer, nv3_poll->nvbase.memory_clock_period);
}
// Gets the vram clock register.
@@ -129,7 +127,7 @@ void nv3_pramdac_set_vram_clock()
// Create and start if it it's not running.
if (!nv3->nvbase.memory_clock_timer)
{
nv3->nvbase.memory_clock_timer = rivatimer_create(time, nv3_pramdac_pixel_clock_poll);
nv3->nvbase.memory_clock_timer = rivatimer_create(time, nv3_pramdac_memory_clock_poll);
rivatimer_start(nv3->nvbase.memory_clock_timer);
}