]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCC: Initialize PCC Mailbox earlier at boot
authorAshwin Chaugule <ashwin.chaugule@linaro.org>
Wed, 5 Aug 2015 13:40:24 +0000 (09:40 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Aug 2015 01:25:46 +0000 (03:25 +0200)
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 <ashwin.chaugule@linaro.org>
Reviewed-by: Al Stone <al.stone@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/mailbox/pcc.c

index 26d121d1d501b7617857a364a63c9dd4b97c1438..68885a82e7046456d95febb9381721931d2f3b2f 100644 (file)
@@ -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);