Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

Linus Torvalds
2008-01-17T17:50:18Z

On Wed, 16 Jan 2008, Mathieu Desnoyers wrote:
>
> Or could we map a per-thread page that would contradict this
> "definition" ?

Over my dead body.

It's been done before. Many times. It's horrible, and means that you need
to flush the TLB on context switches between threads and cannot share the
same hw page tables across CPU's (since now different CPU's run different
threads).

It generally makes threads pointless. You might as well implement them as
processes with shared mmap.

Linus