]> git.karo-electronics.de Git - mv-sheeva.git/commit
powerpc/eeh: Introduce struct eeh_stats for EEH
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 29 Feb 2012 15:47:45 +0000 (15:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 9 Mar 2012 00:39:49 +0000 (11:39 +1100)
commite575f8db1ed8e73515350a0d569a0eb8367ab6b4
tree0342ef73839253f05b6e01e09f47d4bc767e54c8
parent54793d0ef113145c8c0342d9bf2ade5c6b71cba5
powerpc/eeh: Introduce struct eeh_stats for EEH

With the original EEH implementation, the EEH global statistics
are maintained by individual global variables. That makes the
code a little hard to maintain.

The patch introduces extra struct eeh_stats for the EEH global
statistics so that it can be maintained in collective fashion.

It's the rework on the corresponding v5 patch. According to
the comments from David Laight, the EEH global statistics have
been changed for a litte bit so that they have fixed-type of
"u64". Also, the format used to print them has been changed to
"%llu" based on David's suggestion. Also, the output format of
EEH global statistics should be kept as intacted according to
Michael's suggestion that there might be tools parsing them.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/eeh.c