mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	sched: Fix hrtick_start() on UP
The commit177ef2a631("sched/deadline: Fix a precision problem in the microseconds range") forgot to change the UP version of hrtick_start(), do so now. Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com> Fixes:177ef2a631("sched/deadline: Fix a precision problem in the microseconds range") [ Fixed the changelog. ] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@arm.com> Cc: Kirill Tkhai <ktkhai@parallels.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/1416962647-76792-7-git-send-email-wanpeng.li@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
		
							parent
							
								
									75381608e8
								
							
						
					
					
						commit
						868933359a
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -492,6 +492,11 @@ static __init void init_hrtick(void) | |||
|  */ | ||||
| void hrtick_start(struct rq *rq, u64 delay) | ||||
| { | ||||
| 	/*
 | ||||
| 	 * Don't schedule slices shorter than 10000ns, that just | ||||
| 	 * doesn't make sense. Rely on vruntime for fairness. | ||||
| 	 */ | ||||
| 	delay = max_t(u64, delay, 10000LL); | ||||
| 	__hrtimer_start_range_ns(&rq->hrtick_timer, ns_to_ktime(delay), 0, | ||||
| 			HRTIMER_MODE_REL_PINNED, 0); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Wanpeng Li
						Wanpeng Li