tle>
aboutsummaryrefslogblamecommitdiffstats
path: root/kernel/sched_fair.c
blob: 892616bf2c77ab212d28823c6fe1bc76b1cb7825 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                    


                                                                          


   

                                                   
  



                                                                   



                                                                    
                                                   
   





                                                              
                                                                     


                                   
                                         




                                                                      
                                                                              








                                                                      
                                                                       



                                                         
                                                                             
















                                                      
                                                    













































































































                                                                        

                                                              










                                                                

                                                               
















                                                                           



































                                                                      
                                                               





                    







                                                                       

                                                     
          
                                                                   
           



                                                           
          
                                                       

                       
                                                       



                                          
                                                          











































                                                                              
                                                               
 
                                                                


                                               
                                      
                                                                            



                                             


                            


                                                                        
                                                                   
                                                                    

                                                                                














                                                                
                                              











                                                              
                                                                              



                                                                         
                                            

                                     
                                                


                  
                                                                       

                                                 
                                                            


























                                                                       
                                                                                







                                                               
                                                    


















                                                                     

                                                                     









                                                              
                                                                       


                                                      

                                                                








                                                                       
                                                                     


                                 


                                           





                                                                            
                                                    



                                       
                                         


                  
                                                                    
 
                            




                                                          
                                                  





                                                        
                                                                       



                                            
                                              





                                                 
                                                                     







                                                   
                                                                             



                                                             






                                                                         
























                                                                        

 
                                                                           













                                                                             
                                              






                                         
                                                                   










                                                    
                                                                   













                                                    
                                                                          



                                 
                            

                   
                                            
 
                                         



                                     
                                                                         
 
                                         






                                                              
                                                                       
                                                              
                                                                       
                 







                                                              
           



                                                                               

















                                                                          




                                                              

                                                           
           
                                                           



                                                  
                                                               







                                                                    
                                          
                                            
                                    
                                                         

 
                                                                   


                                                             
                                    



                  
                                                                             





                                                           
                                    
 
                                            

                        
                                                      




                                                                         
                                  
 



                                                     
                                        
                                        







                                                           

                                                     






























































































                                                                                
                                                                               







                                         
                                                   







                                                         
                                                                              





                                         
                                                  











                                                                              
 
                              



                                                     
                                          
                                          











                                                                         
                                    
                                    














                                                                           
                                                             







                                          
                                              








                                          
                                                                       





                                            
                                            









































                                                                             
                              












                                                  
      
 
                    
                                                                       


                                                                         









                                                               
                              
                                           
                               
                                      


                                                                
                                                                                







                                                                              

                                                                
                              
      





                                                                           
                                                                               








                                                           
                                             






















                                                                   
                                                               

                                               
                                                                      


                             
                            
                                         




                                                               
                                       
                                                                       




                                                                     
                                        




                                                            
                                                           
                                                                    

                                     









                                                                      
                                                
 

                                                   



























                                                          
                                                        
 

                              
                                                 
                                             

      
/*
 * Completely Fair Scheduling (CFS) Class (SCHED_NORMAL/SCHED_BATCH)
 *
 *  Copyright (C) 2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
 *
 *  Interactivity improvements by Mike Galbraith
 *  (C) 2007 Mike Galbraith <efault@gmx.de>
 *
 *  Various enhancements by Dmitry Adamushko.
 *  (C) 2007 Dmitry Adamushko <dmitry.adamushko@gmail.com>
 *
 *  Group scheduling enhancements by Srivatsa Vaddagiri
 *  Copyright IBM Corporation, 2007
 *  Author: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
 *
 *  Scaled math optimizations by Thomas Gleixner
 *  Copyright (C) 2007, Thomas Gleixner <tglx@linutronix.de>
 *
 *  Adaptive scheduling granularity, math enhancements by Peter Zijlstra
 *  Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com>
 */

/*
 * Targeted preemption latency for CPU-bound tasks:
 * (default: 20ms, units: nanoseconds)
 *
 * NOTE: this latency value is not the same as the concept of