Lines Matching +full:up +full:- +full:counter
51 their UP variant must be kept. It typically means removing LOCK prefix (on
53 not have a different behavior between SMP and UP, including
54 ``asm-generic/local.h`` in your architecture's ``local.h`` is sufficient.
72 different CPU between getting the per-cpu variable and doing the
78 -rt kernels.
110 If you are already in a preemption-safe context, you can use
131 the ``local_t`` variable as a counter of bytes written in a buffer: there should
132 be a ``smp_wmb()`` between the buffer write and the counter increment and also a
133 ``smp_rmb()`` between the counter read and the buffer read.
136 Here is a sample module which implements a basic per cpu counter using
139 /* test-local.c
156 /* Increment the counter from a non preemptible context */
185 /* initialize the timer that will increment the counter */