Skip to content

Commit

Permalink
ACPI: Add prefetch decoding to the address space parser
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
KAGA-KOKO authored and rafaeljw committed Feb 3, 2015
1 parent 72e26b0 commit fcb29bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/acpi/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit fcb29bb

Please sign in to comment.