procps: fix that top will quit after cpu offline
authorWenzong Fan <wenzong.fan@windriver.com>
Wed, 19 Jun 2013 03:21:11 +0000 (23:21 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jun 2013 17:03:34 +0000 (18:03 +0100)
commitd9a2eebebe7af7a8147fd94b2e5d1145dbfccc88
treed7844a79d8b1ceffb9a5964f1eec10ed059b96fa
parentc87281b26a6fc45f594ee4b7db7f077a43dee80d
procps: fix that top will quit after cpu offline

top utiliy fails to read /proc/stat after cpu offline, because Cpu_tot
is still the original cpu numbers when calling cpus_refresh, in which
it is trying to read and sscanf Cpu_tot times /proc/stat.

The patch is from procps-3.2.8-2.fc12.src.rpm

(From OE-Core rev: f24aed8d7e41cce277c6eff4ff5ab07b8e39ffff)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/procps/procps-3.2.8/procps-3.2.7-top-remcpu.patch [new file with mode: 0644]
meta/recipes-extended/procps/procps_3.2.8.bb