itimers: Merge ITIMER_VIRT and ITIMER_PROF
Both cpu itimers have same data flow in the few places, this patch make unification of code related with VIRT and PROF itimers. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> LKML-Reference: <1248862529-6063-2-git-send-email-sgruszka@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
		
				
					committed by
					
						 Ingo Molnar
						Ingo Molnar
					
				
			
			
				
	
			
			
			
						parent
						
							ed680c4ad4
						
					
				
				
					commit
					42c4ab41a1
				
			| @@ -62,6 +62,7 @@ | ||||
| #include <linux/fs_struct.h> | ||||
| #include <linux/magic.h> | ||||
| #include <linux/perf_counter.h> | ||||
| #include <linux/posix-timers.h> | ||||
|  | ||||
| #include <asm/pgtable.h> | ||||
| #include <asm/pgalloc.h> | ||||
| @@ -790,10 +791,10 @@ static void posix_cpu_timers_init_group(struct signal_struct *sig) | ||||
| 	thread_group_cputime_init(sig); | ||||
|  | ||||
| 	/* Expiration times and increments. */ | ||||
| 	sig->it_virt_expires = cputime_zero; | ||||
| 	sig->it_virt_incr = cputime_zero; | ||||
| 	sig->it_prof_expires = cputime_zero; | ||||
| 	sig->it_prof_incr = cputime_zero; | ||||
| 	sig->it[CPUCLOCK_PROF].expires = cputime_zero; | ||||
| 	sig->it[CPUCLOCK_PROF].incr = cputime_zero; | ||||
| 	sig->it[CPUCLOCK_VIRT].expires = cputime_zero; | ||||
| 	sig->it[CPUCLOCK_VIRT].incr = cputime_zero; | ||||
|  | ||||
| 	/* Cached expiration times. */ | ||||
| 	sig->cputime_expires.prof_exp = cputime_zero; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user