Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86-64: Allow fbdev primary video code

For some reason the 64-bit tree was doing this differently and
I can't see why it would need to.

This correct behaviour when you have two GPUs plugged in and
32-bit put the console in one place and 64-bit in another.

Signed-off-by: Dave Airlie <airlied@redhat.com>
LKML-Reference: <1262847894-27498-1-git-send-email-airlied@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

authored by

Dave Airlie and committed by
H. Peter Anvin
477346ff b0483e78

-6
-2
arch/x86/Makefile
··· 135 135 # suspend and hibernation support 136 136 drivers-$(CONFIG_PM) += arch/x86/power/ 137 137 138 - ifeq ($(CONFIG_X86_32),y) 139 138 drivers-$(CONFIG_FB) += arch/x86/video/ 140 - endif 141 139 142 140 #### 143 141 # boot loader support. Several targets are kept for legacy purposes
-4
arch/x86/include/asm/fb.h
··· 12 12 pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; 13 13 } 14 14 15 - #ifdef CONFIG_X86_32 16 15 extern int fb_is_primary_device(struct fb_info *info); 17 - #else 18 - static inline int fb_is_primary_device(struct fb_info *info) { return 0; } 19 - #endif 20 16 21 17 #endif /* _ASM_X86_FB_H */