ACPI / x86: Cleanup initrd related code
authorLv Zheng <lv.zheng@intel.com>
Mon, 11 Apr 2016 02:13:27 +0000 (10:13 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Apr 2016 21:59:09 +0000 (23:59 +0200)
commitaf06f8b7a102417e93dc57ee7affb9fedcf5d83f
tree99f036a7d19bc0cd95a3064c340d507322dbfc47
parent5ae74f2cc2f150c1a5cee54cabbd71dd0661285a
ACPI / x86: Cleanup initrd related code

In arch/x86/kernel/setup.c, the #ifdef kept for CONFIG_ACPI actually is
related to the accessibility of initrd_start/initrd_end, so the stub should
be provided from this source file and should only be dependent on
CONFIG_BLK_DEV_INITRD.

Note that when ACPI=n and BLK_DEV_INITRD=y, early_initrd_acpi_init() is
still a stub because of the stub prepared for early_acpi_table_init().

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/setup.c