From: Ashwin Chaugule Date: Wed, 5 Aug 2015 13:40:24 +0000 (-0400) Subject: PCC: Initialize PCC Mailbox earlier at boot X-Git-Tag: v5.15~15174^2~8^3~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3c68f218f927bd4b14b586ea2dcecee54cf09ad;p=platform%2Fkernel%2Flinux-starfive.git PCC: Initialize PCC Mailbox earlier at boot This change initializes the PCC Mailbox earlier than the ACPI processor driver. This enables drivers introduced in follow up patches (e.g. CPPC) to be probed via the ACPI processor driver interface. The CPPC probe requires the PCC channel to be initialized for it to query each CPUs performance capabilities. Signed-off-by: Ashwin Chaugule Reviewed-by: Al Stone Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index 26d121d..68885a8 100644 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox/pcc.c @@ -352,4 +352,10 @@ static int __init pcc_init(void) return 0; } -device_initcall(pcc_init); + +/* + * Make PCC init postcore so that users of this mailbox + * such as the ACPI Processor driver have it available + * at their init. + */ +postcore_initcall(pcc_init);