mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
PM / devfreq: rockchip_dmcdbg: build depends on CPU config
This optimizes the size of rockchip-otp.o, details as follows. ./scripts/bloat-o-meter rockchip_dmc_dbg-old.o rockchip_dmc_dbg.o add/remove: 0/3 grow/shrink: 1/1 up/down: 248/-640 (-392) Function old new delta rv1126_dmcdbg_init 588 836 +248 px30_dmcdbg_init 92 - -92 rk_dmcdbg_sip_smc_match_ver 164 - -164 proc_dmcdbg_init 188 - -188 rockchip_dmcdbg_of_match 588 392 -196 Total: Before=9476, After=9084, chg -4.14% Change-Id: Ib8b3ef4ebffe9c73e4a2b4541a696ed4b3524180 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
@@ -1097,8 +1097,12 @@ static __maybe_unused int px30_dmcdbg_init(struct platform_device *pdev,
|
||||
}
|
||||
|
||||
static const struct of_device_id rockchip_dmcdbg_of_match[] = {
|
||||
#ifdef CONFIG_CPU_PX30
|
||||
{ .compatible = "rockchip,px30-dmcdbg", .data = px30_dmcdbg_init },
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RV1126
|
||||
{ .compatible = "rockchip,rv1126-dmcdbg", .data = rv1126_dmcdbg_init },
|
||||
#endif
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rockchip_dmcdbg_of_match);
|
||||
|
||||
Reference in New Issue
Block a user