You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge: mm: backport mm_init.c to bring init_reserved_page optimisations
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4217
JIRA: https://issues.redhat.com/browse/RHEL-36126
Bring a _DEFERRED_STRUCT_PAGE_INIT_ optimisations ([[1](https://lore.kernel.org/all/20230619023406.424298-1-yajun.deng@linux.dev/)]) to improve boot times for the automotive use-case.
The following path is improved by avoiding to take the lock when not necessary:
```
-> reserve_bootmem_region
-> init_reserved_page
-> early_pfn_to_nid
-> spin_lock(&early_pfn_lock)
-> __early_pfn_to_nid
-> memblock_search_pfn_nid()
-> memblock_search()
-> spin_unlock(&early_pfn_lock)
```
On sa8775p-ride (using automotive configuration), this saves ~30ms before _time_init()_ is called, which makes it hard to observe.
Signed-off-by: Eric Chanudet <echanude@redhat.com>
Approved-by: Rafael Aquini <aquini@redhat.com>
Approved-by: Waiman Long <longman@redhat.com>
Approved-by: Steve Dunnagan <sdunnaga@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Lucas Zampieri <lzampier@redhat.com>
0 commit comments