forked from mirrors/linux
		
	s390/cpumf: remove superfluous nr_cpumask_bits check
Paul Burton reported that the nr_cpumask_bits check within cpumsf_pmu_event_init() is not necessary. Actually there is already a prior check within perf_event_alloc(). Therefore remove the check. Reported-by: Paul Burton <paul.burton@imgtec.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
		
							parent
							
								
									76b3138192
								
							
						
					
					
						commit
						1922099979
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -823,12 +823,8 @@ static int cpumsf_pmu_event_init(struct perf_event *event)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Check online status of the CPU to which the event is pinned */
 | 
						/* Check online status of the CPU to which the event is pinned */
 | 
				
			||||||
	if (event->cpu >= 0) {
 | 
						if (event->cpu >= 0 && !cpu_online(event->cpu))
 | 
				
			||||||
		if ((unsigned int)event->cpu >= nr_cpumask_bits)
 | 
					 | 
				
			||||||
			return -ENODEV;
 | 
								return -ENODEV;
 | 
				
			||||||
		if (!cpu_online(event->cpu))
 | 
					 | 
				
			||||||
			return -ENODEV;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Force reset of idle/hv excludes regardless of what the
 | 
						/* Force reset of idle/hv excludes regardless of what the
 | 
				
			||||||
	 * user requested.
 | 
						 * user requested.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue