]> err.no Git - linux-2.6/commit
smpboot: fix cachesize comparison in smp_tune_scheduling()
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 31 May 2007 14:55:16 +0000 (07:55 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 31 May 2007 14:55:16 +0000 (07:55 -0700)
commit8387c1a46376b8cfc5f4751b27a6c90f930992cf
treebdb1553b17a20fe2dcd928d5aec1d20789760e20
parenta2b7d2e97edcad0e95ae0d3c253d3f2f69254fa4
smpboot: fix cachesize comparison in smp_tune_scheduling()

Jarek Poplawski noted that boot_cpu_data.x86_cache_size is signed int
and can be < 0 too.

In fact we test for it. Except we assigned it to an unsigned value..

Cc: Jarek Poplawski <jarkao2@o2.pl>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/smpboot.c