Skip to content

Commit 6fd1345

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: processor: Replace kernel.h with the necessary inclusions
When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 1360572 commit 6fd1345

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

include/acpi/acpi_numa.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#define __ACPI_NUMA_H
44

55
#ifdef CONFIG_ACPI_NUMA
6-
#include <linux/kernel.h>
76
#include <linux/numa.h>
87

98
/* Proximity bitmap length */

include/acpi/processor.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
#ifndef __ACPI_PROCESSOR_H
33
#define __ACPI_PROCESSOR_H
44

5-
#include <linux/kernel.h>
65
#include <linux/cpu.h>
76
#include <linux/cpufreq.h>
87
#include <linux/pm_qos.h>
8+
#include <linux/printk.h>
9+
#include <linux/sched.h>
10+
#include <linux/smp.h>
911
#include <linux/thermal.h>
12+
#include <linux/types.h>
13+
#include <linux/workqueue.h>
14+
1015
#include <asm/acpi.h>
1116

1217
#define ACPI_PROCESSOR_CLASS "processor"

0 commit comments

Comments
 (0)