> Date: Tue, 10 Jul 2012 21:44:06 +0200
> From: "Christiano F. Haesbaert" <[email protected]>
>
> This isn't used, the idle thread just sets the PEG flag and goes on.
Please don't; I have some stuff that *will* use this.
> Index: kern/kern_sched.c
> ===================================================================
> RCS file: /cvs/src/sys/kern/kern_sched.c,v
> retrieving revision 1.27
> diff -d -u -p -r1.27 kern_sched.c
> --- kern/kern_sched.c 10 Jul 2012 18:20:37 -0000 1.27
> +++ kern/kern_sched.c 10 Jul 2012 19:41:55 -0000
> @@ -545,26 +545,6 @@ sched_proc_to_cpu_cost(struct cpu_info *
> return (cost);
> }
>
> -/*
> - * Peg a proc to a cpu.
> - */
> -void
> -sched_peg_curproc(struct cpu_info *ci)
> -{
> - struct proc *p = curproc;
> - int s;
> -
> - SCHED_LOCK(s);
> - p->p_priority = p->p_usrpri;
> - p->p_stat = SRUN;
> - p->p_cpu = ci;
> - atomic_setbits_int(&p->p_flag, P_CPUPEG);
> - setrunqueue(p);
> - p->p_ru.ru_nvcsw++;
> - mi_switch();
> - SCHED_UNLOCK(s);
> -}
> -
> #ifdef MULTIPROCESSOR
>
> void
> Index: sys/sched.h
> ===================================================================
> RCS file: /cvs/src/sys/sys/sched.h,v
> retrieving revision 1.30
> diff -d -u -p -r1.30 sched.h
> --- sys/sched.h 16 Nov 2011 20:50:19 -0000 1.30
> +++ sys/sched.h 10 Jul 2012 19:42:05 -0000
> @@ -151,7 +151,6 @@ struct cpu_info *sched_choosecpu_fork(st
> void cpu_idle_enter(void);
> void cpu_idle_cycle(void);
> void cpu_idle_leave(void);
> -void sched_peg_curproc(struct cpu_info *ci);
>
> #ifdef MULTIPROCESSOR
> void sched_start_secondary_cpus(void);