Files
linux/arch/x86/include/asm
Kirill A. Shutemov c49a3f56d8 mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS
commit 02390b87a9 upstream

With boot-time switching between paging mode we will have variable
MAX_PHYSMEM_BITS.

Let's use the maximum variable possible for CONFIG_X86_5LEVEL=y
configuration to define zsmalloc data structures.

The patch introduces MAX_POSSIBLE_PHYSMEM_BITS to cover such case.
It also suits well to handle PAE special case.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Nitin Gupta <ngupta@vflare.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20180214111656.88514-3-kirill.shutemov@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
[florian: drop arch/x86/include/asm/pgtable_64_types.h changes since
there is no CONFIG_X86_5LEVEL]
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 12:02:20 +09:00
..
2023-05-15 08:58:16 +09:00
2018-01-17 10:29:45 +01:00
2015-05-28 15:31:53 +02:00
2012-03-28 18:11:12 +01:00
2014-03-04 21:47:51 +01:00
2011-04-18 09:26:48 -07:00
2015-10-21 11:17:32 +02:00
2018-01-05 15:46:32 +01:00
2023-05-12 16:56:24 +09:00
2009-08-27 00:35:56 +02:00
2015-04-24 15:36:55 +02:00
2010-10-26 16:52:08 -07:00
2012-06-25 13:48:30 +02:00
2018-01-05 15:46:35 +01:00
2016-08-18 18:41:27 +02:00
2009-06-13 15:37:30 +02:00
2016-01-12 12:17:28 +01:00
2010-06-09 11:12:36 +02:00
2015-07-31 13:31:10 +02:00
2017-06-07 12:07:47 +02:00
2008-10-22 22:55:23 -07:00
2014-02-27 08:07:39 -08:00
2018-02-13 12:36:00 +01:00
2023-05-15 14:49:51 +09:00
2015-12-19 11:53:40 +01:00
2018-03-18 12:07:50 +01:00
2008-10-22 22:55:23 -07:00
2014-09-01 10:15:31 +02:00
2011-03-15 15:34:15 -07:00
2016-09-20 09:26:15 +02:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2015-05-19 15:47:30 +02:00
2016-01-30 11:22:17 +01:00
2016-09-05 11:47:31 +02:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2023-05-15 17:16:29 +09:00
2016-06-16 00:04:31 +02:00
2015-05-19 15:47:30 +02:00