On Tue, Aug 27, 2013 at 1:31 PM, Richard Weinberger <richard@nod.at> wrote:

Am 27.08.2013 19:51, schrieb Han:
> On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger <richard.weinberger@gmail.com <mailto:richard.weinberger@gmail.com>> wrote:
>     On Fri, Aug 23, 2013 at 8:35 PM, Han <keepsimple@gmail.com <mailto:keepsimple@gmail.com>> wrote:
>     > Hi,
>     >
>     > I am using Linux kernel 2.6.27 for building UML kernel.  It seems like
>     > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not
>     > available.
>     >
>     > My question is:  what's the reason that "tsc.c" not included in UML?  Is
>     > there any config or simple way(patch?)  to include it in UML?
>     Simply because UML has no TSC.
> [Han]  I don't really understand why UML has no TSC.   As I know,  TSC is accessible from user space process (on x86 at least) and I don't see any obvious reason why UML does not
> support TSC.   I might missed something.

What exactly is the problem you are trying to solve?

> I am trying to add TSC into UML kernel (2.6.27)  for an experiment.   Is that a practical thing to do at all?

What exactly do you want to add? TSC as a clocksource to UML..?

my immediate need is to compile and run an application that uses "cpu_khz"  (which is part of tsc.c).  I cannot modify the source code of the application as I am not the owner.