Messages in this thread | | | Date | Tue, 11 Feb 2014 09:10:42 +0800 | From | Dongsheng Yang <> | Subject | Re: [PATCH 1/3] sched: Move the priority specific bits into a new header file. |
| |
Hi Steven,
On 02/10/2014 10:09 PM, Steven Rostedt wrote: > > > That's why you have: > > +++ b/include/linux/sched/prio.h > @@ -0,0 +1,23 @@ > +#ifndef _SCHED_PRIO_H > +#define _SCHED_PRIO_H > > The first time a header gets included, it checks if _SCHED_PRIO_H is > defined, if not, it defines it and continues. Otherwise it skips the > content of the file. > > This is so standard practice that CPP (C Pre-Processor) optimizes this > by checking if this exists and caches it. It wont even open the file > the second time it sees it included.
Wow, yes. Thank you for your kind explanation. :) > > -- Steve > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ >
| |