Commit fbe7193a authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Ingo Molnar

x86/mm/pat: Export pat_enabled()

Two Linux device drivers cannot work with PAT and the work
required to make them work is significant. There is not enough
motivation to convert these drivers over to use PAT properly,
the compromise reached is to let drivers that cannot be ported
to PAT check if PAT was enabled and if so fail on probe with a
recommendation to boot with the "nopat" kernel parameter.
Signed-off-by: default avatarLuis R. Rodriguez <>
Signed-off-by: default avatarBorislav Petkov <>
Cc: Andy Lutomirski <>
Cc: Andy Walls <>
Cc: Bjorn Helgaas <>
Cc: Borislav Petkov <>
Cc: Brian Gerst <>
Cc: Daniel Vetter <>
Cc: Dave Airlie <>
Cc: Denys Vlasenko <>
Cc: Doug Ledford <>
Cc: H. Peter Anvin <>
Cc: Juergen Gross <>
Cc: Linus Torvalds <>
Cc: Michael S. Tsirkin <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Link: default avatarIngo Molnar <>
parent cb32edf6
......@@ -55,6 +55,7 @@ bool pat_enabled(void)
return !!__pat_enabled;
int pat_debug_enable;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment