Re: [RFC] Implementing temporal affinity

Date: Fri Aug 25 2000 - 16:45:36 EST

On Fri, 25 Aug 2000, Chris Swiedler wrote:

> Looking at the code, however, I don't see how we can tell how long a process
> has been on a CPU. We could add a field to task_struct which indicates this.
> Also this would require that we remove the #ifdef __SMP__ for the processor
> and last_processor fields in the task_queue. So we'd be increasing the size
> of the task_struct by 3 ints for UP, which by itself may make the idea not
> worthwhile...
> Any opinions?
Is it just me, or is both last_processor and processor always going to
equal 0 on UP, and no matter how long you delay setting of last_processor
to processor, you always going to be setting a zeroed variable to a zeroed
variable? What would you gain by un-#ifdefing last_process and processor
on UP?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:17 EST