OpenCloudOS-Kernel/include/linux/device
Kairui Song 40521e8d0e kabi: add paddings and optimize (part 3)
Upstream: no

Using CentOS 8's kABI as reference, check if we need to padding more
struct, and here is the result.

We still don't have any reservation for things like ucount, x86
register, that may come later.

Following reservations are adjusted:

sched_avg is strictly cacheline aligned, adding any padding will make
compiler pad another whole cacheline.

cfs_rq is embedded in many structs and rarely change, just reserve two
item.

hr_timer is embedded in many structs and rarely change, just reserve one
item.

dentry_operations was like: `size: 192, cachelines: 3, members: 17`, it
have 56 byte available on last cacheline, so just use all of that and
reserve 3 only.

inode_operations: try to align to 32 byte.

irq_desc: align with cacehline.

kobject: it's never changed since 3.10, and embedded in many places,
just drop the reservation.

zone: reserve a bit more since it's already on a new cacheline.

Signed-off-by: Kairui Song <kasong@tencent.com>
2023-12-12 15:56:46 +08:00
..
bus.h driver core: bus: move documentation for lock_key to proper location. 2023-03-25 09:38:08 +01:00
class.h kabi: add paddings (part 2) 2023-12-12 15:56:46 +08:00
driver.h kabi: add paddings and optimize (part 3) 2023-12-12 15:56:46 +08:00