lkml.org 
[lkml]   [2010]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [thisops uV2 04/10] x86: Support for this_cpu_add,sub,dec,inc_return
    From
    On Fri, Nov 26, 2010 at 11:09 PM, Christoph Lameter <cl@linux.com> wrote:
    > @@ -300,6 +339,14 @@ do {                                                                       \
    >  #define irqsafe_cpu_xor_2(pcp, val)    percpu_to_op("xor", (pcp), val)
    >  #define irqsafe_cpu_xor_4(pcp, val)    percpu_to_op("xor", (pcp), val)
    >
    > +#ifndef CONFIG_M386

    Use CONFIG_X86_32 here?

    > +#define __this_cpu_add_return_1(pcp, val)      percpu_add_return_op((pcp), val)
    > +#define __this_cpu_add_return_2(pcp, val)      percpu_add_return_op((pcp), val)
    > +#define __this_cpu_add_return_4(pcp, val)      percpu_add_return_op((pcp), val)
    > +#define this_cpu_add_return_1(pcp, val)                percpu_add_return_op((pcp), val)
    > +#define this_cpu_add_return_2(pcp, val)                percpu_add_return_op((pcp), val)
    > +#define this_cpu_add_return_4(pcp, val)                percpu_add_return_op((pcp), val)
    > +#endif
    >  /*
    >  * Per cpu atomic 64 bit operations are only available under 64 bit.
    >  * 32 bit must fall back to generic operations.
    --
    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: 2010-11-27 09:09    [W:0.021 / U:32.444 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site