[Skiboot] [PATCH v2 1/4] ipmi: Add a function to (re)initialise a message without allocation
Joel Stanley
joel at jms.id.au
Thu Feb 5 16:25:29 AEDT 2015
On Wed, Feb 4, 2015 at 3:37 PM, Alistair Popple <alistair at popple.id.au> wrote:
> Currently the only functions we have for initialising ipmi messages
> with the correct values also allocate memory for the message. In some
> cases we want to reuse previously allocated messages to avoid
> continually freeing/allocating memory.
>
> This patch introduces a function which (re)initialises a previously
> allocated message and converts existing instances of this behaviour
> over to the new function.
>
> Signed-off-by: Alistair Popple <alistair at popple.id.au>
Reviewed-by: Joel Stanley <joel at jms.id.au>
> ---
> core/ipmi.c | 28 ++++++++++++++++++----------
> hw/ipmi/ipmi-fru.c | 7 +++----
> hw/ipmi/ipmi-sel.c | 24 ++++++++++++------------
> hw/ipmi/test/run-fru.c | 8 ++++++++
> include/ipmi.h | 8 +++++++-
> 5 files changed, 48 insertions(+), 27 deletions(-)
More information about the Skiboot
mailing list