Messages in this thread | | | Subject | Re: UP optimizations .. | From | Daniel Egger <> | Date | 28 Aug 2003 10:23:16 +0200 |
| |
Am Mit, 2003-08-27 um 20.17 schrieb Mikael Pettersson:
> +#else > + > +static inline int task_cpu(const struct task_struct *p) > +{ > + return 0; > +} > + > +static inline void set_task_cpu(struct task_struct *p, int cpu) > +{ > +} > + > +static inline unsigned long task_cpus_allowed(const struct task_struct *p) > +{ > + return ~0UL; > +} > + > +static inline void set_task_cpus_allowed(struct task_struct *p, > + unsigned long cpus_allowed) > +{ > +} > + > +static inline void set_task_cpus_runnable(struct task_struct *p, > + unsigned long cpus_runnable) > +{ > +} > + > +#endif /* CONFIG_SMP */
Shouldn't these be marked const?
-- Servus, Daniel [unhandled content-type:application/pgp-signature] | |