Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 583574 | Differences between
and this patch

Collapse All | Expand All

(-)common/lib/modules/fglrx/build_mod/firegl_public.h.orig (+8 lines)
Lines 647-658 Link Here
647
#endif
647
#endif
648
648
649
#ifndef cpu_has_pat
649
#ifndef cpu_has_pat
650
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
651
#define cpu_has_pat boot_cpu_has(X86_FEATURE_PAT)
652
#else
650
#define cpu_has_pat  test_bit(X86_FEATURE_PAT, (void *) &boot_cpu_data.x86_capability)
653
#define cpu_has_pat  test_bit(X86_FEATURE_PAT, (void *) &boot_cpu_data.x86_capability)
651
#endif
654
#endif
655
#endif
652
656
653
#ifndef cpu_has_pge
657
#ifndef cpu_has_pge
658
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
659
#define cpu_has_pge boot_cpu_has(X86_FEATURE_PGE)
660
#else
654
#define cpu_has_pge test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability)
661
#define cpu_has_pge test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability)
655
#endif
662
#endif
663
#endif
656
664
657
/* 2.6.29 defines pgprot_writecombine as a macro which resolves to a
665
/* 2.6.29 defines pgprot_writecombine as a macro which resolves to a
658
 * GPL-only function with the same name. So we always use our own
666
 * GPL-only function with the same name. So we always use our own

Return to bug 583574