lkml.org 
[lkml]   [2008]   [May]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 14 May 2008 10:33:01 +0200
FromAndi Kleen <>
SubjectRe: [PATCH] common implementation of iterative div/mod
Jeremy Fitzhardinge wrote:

> > arch/x86/vdso/vclock_gettime.c has its own copies of other kernel
> functions which it can't directly call.  We could add
> timespec_add_ns()/iter_div_u64_rem() to that list, though its pretty
> hacky.  Could we link lib/div64.o into the vdso?

You would need to annotate it and have a separate object file for the
different sections. Also it would need to be compiled PIC.
Inlining is better.

-Andi



\
 
 \ /
  Last update: 2008-05-14 10:35    [from the cache]
©2003-2008