diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-08-31 10:06:53 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-08-31 10:06:53 +0100 |
commit | e351818d402419da30bcd2e13ec0896d66b990d6 (patch) | |
tree | f13dc7244d9e40e583dc7366d72622e55e61bfd7 /xen/arch/x86/e820.c | |
parent | 2ea33061b38d5997323293da150b1bda8c6beba2 (diff) | |
download | xen-e351818d402419da30bcd2e13ec0896d66b990d6.tar.gz xen-e351818d402419da30bcd2e13ec0896d66b990d6.tar.bz2 xen-e351818d402419da30bcd2e13ec0896d66b990d6.zip |
introduce size_param()
With there being several instances of custom_param() where the handler
is just invoking parse_size_and_unit(), it seems to make sense to
introduce a simplifying abstraction.
Also fix serial_txbufsz not having been guaranteed to be a power of
two.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/e820.c')
-rw-r--r-- | xen/arch/x86/e820.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index db258ecc82..b87990a7f4 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -11,9 +11,8 @@ #include <asm/msr.h> /* opt_mem: Limit of physical RAM. Any RAM beyond this point is ignored. */ -unsigned long long opt_mem; -static void parse_mem(char *s) { opt_mem = parse_size_and_unit(s, NULL); } -custom_param("mem", parse_mem); +static unsigned long long __initdata opt_mem; +size_param("mem", opt_mem); /* opt_nomtrr_check: Don't clip ram to highest cacheable MTRR. */ static int __initdata e820_mtrr_clip = -1; |