mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	sched/migration: Move calc_load_migrate() into CPU_DYING
It really does not matter when we fold the load for the outgoing cpu. It's almost dead anyway, so there is no harm if we fail to fold the few microseconds which are required for going fully away. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: rt@linutronix.de Link: http://lkml.kernel.org/r/20160310120025.328739226@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
		
							parent
							
								
									94baf7a5d8
								
							
						
					
					
						commit
						e9cd8fa4fc
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -5447,9 +5447,6 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
 | 
				
			||||||
		migrate_tasks(rq);
 | 
							migrate_tasks(rq);
 | 
				
			||||||
		BUG_ON(rq->nr_running != 1); /* the migration thread */
 | 
							BUG_ON(rq->nr_running != 1); /* the migration thread */
 | 
				
			||||||
		raw_spin_unlock_irqrestore(&rq->lock, flags);
 | 
							raw_spin_unlock_irqrestore(&rq->lock, flags);
 | 
				
			||||||
		break;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	case CPU_DEAD:
 | 
					 | 
				
			||||||
		calc_load_migrate(rq);
 | 
							calc_load_migrate(rq);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue