Kernel: Remove unnecessary timer check from Scheduler
This commit is contained in:
		
							parent
							
								
									6feb8a99d2
								
							
						
					
					
						commit
						07ee898f4f
					
				|  | @ -73,8 +73,6 @@ namespace Kernel | |||
| 
 | ||||
| 		BAN::LinkedList<ActiveThread>::iterator m_current_thread; | ||||
| 
 | ||||
| 		uint64_t m_last_reschedule = 0; | ||||
| 
 | ||||
| 		friend class Process; | ||||
| 	}; | ||||
| 
 | ||||
|  |  | |||
|  | @ -71,10 +71,6 @@ namespace Kernel | |||
| 		ASSERT(InterruptController::get().is_in_service(PIT_IRQ)); | ||||
| 		InterruptController::get().eoi(PIT_IRQ); | ||||
| 
 | ||||
| 		if (PIT::ms_since_boot() <= m_last_reschedule) | ||||
| 			return; | ||||
| 		m_last_reschedule = PIT::ms_since_boot(); | ||||
| 
 | ||||
| 		wake_threads(); | ||||
| 
 | ||||
| 		if (save_current_thread()) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue