ACPI: Add prefetch decoding to the address space parser
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 Feb 2015 02:42:53 +0000 (10:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 21:27:19 +0000 (22:27 +0100)
Add support of PREFETCH attributre to ACPI address space and extended
address space parser.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/resource.c

index 15d17937c4315c3bded47b4265919b3294f7220d..7ce00a63f6957610f1f059edabf19d79ef0c56f6 100644 (file)
@@ -200,6 +200,9 @@ static bool acpi_decode_space(struct resource *res,
        if (addr->producer_consumer == ACPI_PRODUCER)
                res->flags |= IORESOURCE_WINDOW;
 
+       if (addr->info.mem.caching == ACPI_PREFETCHABLE_MEMORY)
+               res->flags |= IORESOURCE_PREFETCH;
+
        return !(res->flags & IORESOURCE_DISABLED);
 }