diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-05 17:11:27 -0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-11 13:42:09 -0700 |
commit | c057eddcb45ac13db487fa413f75611c69aad600 (patch) | |
tree | 112869bb02c2bce1973f876b6ba07f809d052444 /tools/perf/scripts/python/stackcollapse.py | |
parent | 44208f59362e7099877f9ba79e1472f6bd321e2e (diff) |
ptp: make ptp_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the ptp_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240305-ptp-v1-1-ed253eb33c20@marliere.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions