Messages in this thread | | | From | Pranith Kumar <> | Date | Sun, 13 Apr 2014 23:03:19 -0400 | Subject | Re: [PATCH 1/1] kernel/rcu/tree.c: remove duplicate extern definition |
| |
On Sun, Apr 13, 2014 at 10:50 PM, Joe Perches <joe@perches.com> wrote: >> >> -/* >> - * This function really isn't for public consumption, but RCU is special in >> - * that context switches can allow the state machine to make progress. >> - */ >> -extern void resched_cpu(int cpu); > > why not #include "sched.h" > > and remove both declarations? > >
As the comment mentions, resched_cpu is internal to the scheduler and hence is in sched/sched.h file and not in linux/sched.h.
sched/sched.h cannot be included in other subsystems directly.
Regards, -- Pranith
| |