lkml.org 
[lkml]   [2003]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: UP optimizations ..
From
Date
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]
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:2.478 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site