lkml.org 
[lkml]   [2006]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC PATCH 18/35] Support gdt/idt/ldt handling on Xen.
    Date
    On Tuesday 09 May 2006 09:21, Pavel Machek wrote:
    > Hi!
    >
    > > +static inline void load_TLS(struct thread_struct *t, unsigned int cpu)
    > > +{
    > > +#define C(i) get_cpu_gdt_table(cpu)[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i]
    > > + C(0); C(1); C(2);
    > > +#undef C
    > > +}
    >
    > Why not use for loop here? gcc should be able to optimize it...

    I don't think you can really blame the Xen people for that code - it's
    just the old code moved.

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

    \
     
     \ /
      Last update: 2006-05-10 22:26    [W:4.375 / U:1.120 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site