Am 27.08.2013 23:30, schrieb Han: > > > > On Tue, Aug 27, 2013 at 2:28 PM, Han <keepsim...@gmail.com > <mailto:keepsim...@gmail.com>> wrote: > > > > > On Tue, Aug 27, 2013 at 1:31 PM, Richard Weinberger <rich...@nod.at > <mailto:rich...@nod.at>> wrote: > > Hi! > > Am 27.08.2013 19 <tel:27.08.2013%2019>:51, schrieb Han: > > > > On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger > <richard.weinber...@gmail.com <mailto:richard.weinber...@gmail.com> > <mailto:richard.weinber...@gmail.com > <mailto:richard.weinber...@gmail.com>>> wrote: > > > > On Fri, Aug 23, 2013 at 8:35 PM, Han <keepsim...@gmail.com > <mailto:keepsim...@gmail.com> <mailto:keepsim...@gmail.com > <mailto:keepsim...@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. > > [Han] sorry, when I say "application", I really meant Kernel Module. (klm).
I really cannot help you on closed sources Kernel modules. You are on your own. But you can look how arch/x86 computes cpu_khz. If you find a sane way to make it available on UML, fine. :) Thanks, //richard ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user