/* look through the command line for some things we need to know immediately  */
static void __init parse_cmdline_early(char *cmdline)
/* look through the command line for some things we need to know immediately  */
static void __init parse_cmdline_early(char *cmdline)
{
	if (!cmdline)
		return;
	while (*cmdline) {
		if (*cmdline == ' ')
			cmdline++;
		if (!memcmp(cmdline, "mem=", 4)) {
			unsigned long long mem_size;
			mem_size = memparse(cmdline + 4, &cmdline);
			memory_end = memory_start + mem_size;
		}
		while (*cmdline && *cmdline != ' ')
			cmdline++;
	}
}