[parisc-linux-cvs] Fix kernel to work with SMP kernels

Matthew Wilcox willy@debian.org
Fri, 30 Nov 2001 04:04:06 +0000


On Thu, Nov 29, 2001 at 08:55:57PM -0700, Ryan Bradetich wrote:
> 	* Added some casts to get rid of compiler warnings.
>  volatile unsigned long cpu_online_map = 0;   /* Bitmap of online CPUs */
> -#define IS_LOGGED_IN(cpunum) (test_bit(cpunum, &cpu_online_map))
> +#define IS_LOGGED_IN(cpunum) (test_bit(cpunum, (atomic_t *)&cpu_online_map))

i'd much rather see cpu_online_map become atomic_t than this.  however, i
have a more wide-ranging patch i'd prefer to merge soon... stay tuned :-)

-- 
Revolutions do not require corporate support.