diff options
author | John Ogness <john.ogness@linutronix.de> | 2020-09-19 01:34:19 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2020-09-22 12:09:42 +0300 |
commit | cfe2790b163acdc9c058a63bff310923e84a16b4 (patch) | |
tree | 6c54003be5c53de5a84358669ebb1dc3a71a4430 /drivers/watchdog/renesas_wdt.c | |
parent | f5f022e53b874f978dda23847173cbf2589b07f5 (diff) | |
download | linux-cfe2790b163acdc9c058a63bff310923e84a16b4.tar.xz |
printk: move printk_info into separate array
The majority of the size of a descriptor is taken up by meta data,
which is often not of interest to the ringbuffer (for example,
when performing state checks). Since descriptors are often
temporarily stored on the stack, keeping their size minimal will
help reduce stack pressure.
Rather than embedding the printk_info into the descriptor, create
a separate printk_info array. The index of a descriptor in the
descriptor array corresponds to the printk_info with the same
index in the printk_info array. The rules for validity of a
printk_info match the existing rules for the data blocks: the
descriptor must be in a consistent state.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200918223421.21621-2-john.ogness@linutronix.de
Diffstat (limited to 'drivers/watchdog/renesas_wdt.c')
0 files changed, 0 insertions, 0 deletions