Re: [patch 2.6.24-rc2 1/3] generic gpio -- gpio_chip support

From: Ingo Molnar
Date: Wed Nov 14 2007 - 04:59:55 EST



* David Brownell <david-b@xxxxxxxxxxx> wrote:

> > Why do you want to use raw_spinlock_t?
>
> Already answered elsewhere in this thread ... I'll highlight the point
> that such bitops shouldn't be preemption points.

raw_spinlock_t is a spinlock-internal implementation detail in the
upstream kernel. You should _not_ be using it. The PREEMPT_RT
raw_spinlock_t markings will move upstream in the future together with
that feature, not piecemail wise with other patches. In other words:
raw_spinlock_t in PREEMPT_RT != raw_spinlock_t in the upstream kernel.
(and dont be worried, any necessary raw_spinlock_t annotations _will_
move upstream together with PREEMPT_RT, once that feature is being
merged, so your code is not missing out on anything.)

The only code that should use raw_spinlock_t in the upstream kernel is
the spinlock code and occasionally some debugging code. (If you still
see any other strong reasons for it then please state it in simple,
standalone terms without depending on context - your reasons were not
clear to me so far so either me or you are confused about something and
this is probably just a matter of communication.)

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