]> asedeno.scripts.mit.edu Git - linux.git/commit
resource: Set type of "reserve=" user-specified resources
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 1 Dec 2017 17:50:33 +0000 (11:50 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 19 Dec 2017 05:07:46 +0000 (23:07 -0600)
commitffd2e8df8d138e7436e218e0a9d3447a18b888e6
treed2a9895eb988bfb44c8690630a2f2f5f6947e291
parent6a9d42ed0d4d28c449de36f561ad3969aac51c41
resource: Set type of "reserve=" user-specified resources

When we reserve regions because the user specified a "reserve=" parameter,
set the resource type to either IORESOURCE_IO (for regions below 0x10000)
or IORESOURCE_MEM.  The test for 0x10000 is just a heuristic; obviously
there can be memory below 0x10000 as well.

Improve documentation of the "reserve=" parameter.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/admin-guide/kernel-parameters.txt
kernel/resource.c