fix wrong size of ub0_percpu.
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Tue, 7 Oct 2008 08:57:48 +0000 (12:57 +0400)
committerPavel Emelyanov <xemul@openvz.org>
Tue, 7 Oct 2008 08:57:48 +0000 (12:57 +0400)
commit777e8164ebf8a03e43511983cdec472f8691a8af
treefbcbb53530f0b3731058b2c11c1b5076afc99849
parent55f09e9a582654fb2253a8cfd0b05e5a9c28b626
fix wrong size of ub0_percpu.

after commit b3242151 struct percpu_data dynamically allocated
and have array only for 1 cpu, so static usage of it does not work.

Plus rework macros for static percpu variables declaration and initialization.

http://bugzilla.openvz.org/show_bug.cgi?id=1039

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
include/linux/percpu.h
kernel/bc/beancounter.c
kernel/ve/ve.c