parisc: Reduce kernel size by packing alternative tables
authorHelge Deller <deller@gmx.de>
Wed, 28 Sep 2022 21:31:20 +0000 (23:31 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 11 Oct 2022 10:01:24 +0000 (12:01 +0200)
commitb148766e2b8b7b61c9aef53aefedae33f637a1e7
tree0d469cca1896e632990fe5e35db5008f365ae32c
parent4fe89d07dcc2804c8b562f6c7896a45643d34b2f
parisc: Reduce kernel size by packing alternative tables

The values stored in the length and condition fields of the alternative
tables fit into 16 bits, so we can save 4 bytes per alternative table
entry.
Since a typical 32-bit kernel has more than 3000 entries this
saves > 12k of storage on disc.

bloat-o-meter shows a reduction of -0.01% by this change:
Total: Before=10196505, After=10195529, chg -0.01%

$ ls -la vmlinux vmlinux.before
-rwxr-xr-x  14437324 vmlinux
-rwxr-xr-x  14449512 vmlinux.before

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/alternative.h
arch/parisc/kernel/alternative.c