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

From: Linus Torvalds
Date: Thu Jan 17 2008 - 12:50:19 EST




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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/