[lkml]   [2007]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch] use __asm__ and __volatile__ in asm-x86_64/msr.h
    Mike Frysinger wrote:
    > On Wednesday 20 June 2007, H. Peter Anvin wrote:
    >> Andi Kleen wrote:
    >>>> asm-i386/msr.h should not be exported to userspace at all, it contains
    >>>> nothing but kernel-internal helpers.
    >>> Actually rdtsc and rdtscll and potentially rdpmc which is in there can be
    >>> very useful in user space if you know what you're doing. Unfortunately a
    >>> lot of its users don't, but not having the include probably won't stop
    >>> them either.
    >> More likely, people will just re-implement them incorrectly.
    >> However, the rdtsc() definition in the kernel is weird (and removable, I
    >> think there are no more users -- I have it removed in my MSR driver
    >> rewrite tree which I need to get off my arse and push.) Most users
    >> would expect the rdtscll() functionality with the rdtsc() name.
    > does that mean you'll also take care of cleaning up msr.h ? or do i need to
    > post another patch ?

    I'll put that on my list.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-07-23 03:29    [W:0.021 / U:48.248 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site