spapr: add drc->index, remove spapr_drc_index()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | hw/ppc/spapr_drc.c: add drc->indexhw/ include/ | +2 | 0 replies | |
| 2/9 | hw/ppc/spapr_drc.c: redefine 'index' SpaprDRC propertyhw/ | +2 | 0 replies | |
| 3/9 | hw/ppc/spapr_drc.c: use drc->index in trace functionshw/ | +13 | 0 replies | |
| 4/9 | hw/ppc/spapr_drc.c: use drc->indexhw/ | +6 | 0 replies | |
| 5/9 | hw/ppc/spapr.c: use drc->indexhw/ | +8 | 0 replies | |
| 6/9 | hw/ppc/spapr_events.c: use drc->indexhw/ | +2 | 0 replies | |
| 7/9 | hw/ppc/spapr_nvdimm.c: use drc->indexhw/ | +4 | 0 replies | |
| 8/9 | hw/ppc/spapr_pci.c: use drc->indexhw/ | +2 | 0 replies | |
| 9/9 | hw/ppc/spapr_drc.c: remove spapr_drc_index()hw/ include/ | +10 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH for-7.1 0/9] spapr: add drc->index, remove spapr_drc_index()
Hi,
I decided to make this change after realizing that (1) spapr_drc_index() always return the same index value for the DRC regardless of machine or device state and (2) we call spapr_drc_index() a lot throughout the spapr code.
This means that a new attribute to store the generated index in the DRC object time will spare us from calling a function that always returns the same value.
No functional changes were made.
Daniel Henrique Barboza (9):
hw/ppc/spapr_drc.c: add drc->index hw/ppc/spapr_drc.c: redefine 'index' SpaprDRC property hw/ppc/spapr_drc.c: use drc->index in trace functions hw/ppc/spapr_drc.c: use drc->index hw/ppc/spapr.c: use drc->index hw/ppc/spapr_events.c: use drc->index hw/ppc/spapr_nvdimm.c: use drc->index hw/ppc/spapr_pci.c: use drc->index hw/ppc/spapr_drc.c: remove spapr_drc_index()
hw/ppc/spapr.c | 18 ++++----- hw/ppc/spapr_drc.c | 79 +++++++++++++++----------------------- hw/ppc/spapr_events.c | 4 +- hw/ppc/spapr_nvdimm.c | 10 ++--- hw/ppc/spapr_pci.c | 5 +-- include/hw/ppc/spapr_drc.h | 2 +- 6 files changed, 48 insertions(+), 70 deletions(-)
Signature · 1 line
2.35.1