HMAT: Register attributes for memory hot add
authorKeith Busch <keith.busch@intel.com>
Mon, 5 Aug 2019 14:27:05 +0000 (08:27 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Aug 2019 09:00:31 +0000 (11:00 +0200)
commitb630f62bc57cb2f6364cb1199983361d2a664abd
treef9719fd648f3361671fed828b911a79125b9d1bb
parent06188d713885d2a469067637240605b657a4b5a7
HMAT: Register attributes for memory hot add

Some of the memory nodes described in HMAT may not be online at the
time the HMAT subsystem parses their nodes' attributes. Should the node be
set to online later, as can happen when using PMEM as RAM after boot, the
nodes will be missing their initiator links and performance attributes.

Regsiter a memory notifier callback and register the memory attributes
the first time its node is brought online if it wasn't registered.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/hmat/hmat.c