diff options
author | Thorsten Leemhuis <fedora@leemhuis.info> | 2020-06-30 17:31:55 +0200 |
---|---|---|
committer | Thorsten Leemhuis <fedora@leemhuis.info> | 2020-06-30 17:31:55 +0200 |
commit | e11be5e9f76f0b54aa2a38b67b3cf193a0dfae9a (patch) | |
tree | 724e53ad8d5c0f42dc98ddc9e9ab1f39e1e3c542 /0001-kdump-round-up-the-total-memory-size-to-128M-for-cra.patch | |
parent | 7b32641801900ee7e32065b436d7318c5d7a972e (diff) | |
parent | d176dfce22f5ead7a6018edb69757bc8840cc008 (diff) | |
download | kernel-e11be5e9f76f0b54aa2a38b67b3cf193a0dfae9a.tar.gz kernel-e11be5e9f76f0b54aa2a38b67b3cf193a0dfae9a.tar.xz kernel-e11be5e9f76f0b54aa2a38b67b3cf193a0dfae9a.zip |
merge origin
Diffstat (limited to '0001-kdump-round-up-the-total-memory-size-to-128M-for-cra.patch')
-rw-r--r-- | 0001-kdump-round-up-the-total-memory-size-to-128M-for-cra.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/0001-kdump-round-up-the-total-memory-size-to-128M-for-cra.patch b/0001-kdump-round-up-the-total-memory-size-to-128M-for-cra.patch index e5f448f7f..26576a04e 100644 --- a/0001-kdump-round-up-the-total-memory-size-to-128M-for-cra.patch +++ b/0001-kdump-round-up-the-total-memory-size-to-128M-for-cra.patch @@ -53,7 +53,7 @@ index 9f1557b98468..d631d22089ba 100644 #include <linux/utsname.h> #include <linux/vmalloc.h> +#include <linux/sizes.h> - + #include <asm/page.h> #include <asm/sections.h> @@ -39,6 +40,15 @@ static int __init parse_crashkernel_mem(char *cmdline, @@ -69,7 +69,7 @@ index 9f1557b98468..d631d22089ba 100644 + * enough for most test cases. + */ + total_mem = roundup(total_mem, SZ_128M); - + /* for each entry of the comma-separated list */ do { @@ -83,13 +93,13 @@ static int __init parse_crashkernel_mem(char *cmdline, @@ -81,7 +81,7 @@ index 9f1557b98468..d631d22089ba 100644 pr_warn("crashkernel: invalid size\n"); return -EINVAL; } - + /* match ? */ - if (system_ram >= start && system_ram < end) { + if (total_mem >= start && total_mem < end) { @@ -89,5 +89,5 @@ index 9f1557b98468..d631d22089ba 100644 break; } -- -2.25.4 +2.26.2 |