ACPI / LPIT: Export lpit_read_residency_count_address()
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 2 Feb 2018 13:43:33 +0000 (19:13 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 4 Feb 2018 13:55:52 +0000 (15:55 +0200)
Export lpit_read_residency_count_address(), so that it can be used from
drivers built as module. With the recent changes, the builtin_pci
functionality of the intel_pmc_core driver is removed and now it can be
built as a module to read this exported interface to calculate the PMC base
address.

Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Tested-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/acpi/acpi_lpit.c

index e94e478dd18bb801f2a119779e08d0fd6fbda7db..cf4fc0161164158e3f83e65e173a6389ab0eaec2 100644 (file)
@@ -100,6 +100,7 @@ int lpit_read_residency_count_address(u64 *address)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(lpit_read_residency_count_address);
 
 static void lpit_update_residency(struct lpit_residency_info *info,
                                 struct acpi_lpit_native *lpit_native)