Re: [PATCH 08/10] x86-32: support atomic64_t on 386/486 UP/SMP
From: Luca Barbieri
Date: Thu Feb 18 2010 - 05:58:12 EST
> IIRC we dropped <i586 SMP support, and since we don't have a PMU on
> those chips atomic64_t doesn't need to be NMI safe, so a simple
> UP-IRQ-disable implementation should suffice.
We need the generic version with spinlocks for other architectures,
and reusing it is the cheapest way to support 386/486.
We thus get 386/486 SMP for free, and on UP the spinlocks simplify to
just IRQ disabling.
The only thing we could do is to #ifdef out the hashed spinlock array
in the generic implementation on UP builds, which would save about 1KB
of memory.
That is independent from this patch though.
--
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/