Merge branch 'linus' into sched/core, to resolve conflict
Conflicts: arch/sparc/include/asm/topology_64.h Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
		
				commit
				
					
						f407a82586
					
				
			
		
					 409 changed files with 3728 additions and 1984 deletions
				
			
		|  | @ -24,7 +24,8 @@ typedef struct { | |||
| 	unsigned int	icache_line_size; | ||||
| 	unsigned int	ecache_size; | ||||
| 	unsigned int	ecache_line_size; | ||||
| 	int		core_id; | ||||
| 	unsigned short	sock_id; | ||||
| 	unsigned short	core_id; | ||||
| 	int		proc_id; | ||||
| } cpuinfo_sparc; | ||||
| 
 | ||||
|  |  | |||
|  | @ -308,12 +308,26 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t prot) | |||
| 	"	sllx		%1, 32, %1\n" | ||||
| 	"	or		%0, %1, %0\n" | ||||
| 	"	.previous\n" | ||||
| 	"	.section	.sun_m7_2insn_patch, \"ax\"\n" | ||||
| 	"	.word		661b\n" | ||||
| 	"	sethi		%%uhi(%4), %1\n" | ||||
| 	"	sethi		%%hi(%4), %0\n" | ||||
| 	"	.word		662b\n" | ||||
| 	"	or		%1, %%ulo(%4), %1\n" | ||||
| 	"	or		%0, %%lo(%4), %0\n" | ||||
| 	"	.word		663b\n" | ||||
| 	"	sllx		%1, 32, %1\n" | ||||
| 	"	or		%0, %1, %0\n" | ||||
| 	"	.previous\n" | ||||
| 	: "=r" (mask), "=r" (tmp) | ||||
| 	: "i" (_PAGE_PADDR_4U | _PAGE_MODIFIED_4U | _PAGE_ACCESSED_4U | | ||||
| 	       _PAGE_CP_4U | _PAGE_CV_4U | _PAGE_E_4U | | ||||
| 	       _PAGE_SPECIAL | _PAGE_PMD_HUGE | _PAGE_SZALL_4U), | ||||
| 	  "i" (_PAGE_PADDR_4V | _PAGE_MODIFIED_4V | _PAGE_ACCESSED_4V | | ||||
| 	       _PAGE_CP_4V | _PAGE_CV_4V | _PAGE_E_4V | | ||||
| 	       _PAGE_SPECIAL | _PAGE_PMD_HUGE | _PAGE_SZALL_4V), | ||||
| 	  "i" (_PAGE_PADDR_4V | _PAGE_MODIFIED_4V | _PAGE_ACCESSED_4V | | ||||
| 	       _PAGE_CP_4V | _PAGE_E_4V | | ||||
| 	       _PAGE_SPECIAL | _PAGE_PMD_HUGE | _PAGE_SZALL_4V)); | ||||
| 
 | ||||
| 	return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); | ||||
|  | @ -342,9 +356,15 @@ static inline pgprot_t pgprot_noncached(pgprot_t prot) | |||
| 	"	andn		%0, %4, %0\n" | ||||
| 	"	or		%0, %5, %0\n" | ||||
| 	"	.previous\n" | ||||
| 	"	.section	.sun_m7_2insn_patch, \"ax\"\n" | ||||
| 	"	.word		661b\n" | ||||
| 	"	andn		%0, %6, %0\n" | ||||
| 	"	or		%0, %5, %0\n" | ||||
| 	"	.previous\n" | ||||
| 	: "=r" (val) | ||||
| 	: "0" (val), "i" (_PAGE_CP_4U | _PAGE_CV_4U), "i" (_PAGE_E_4U), | ||||
| 	             "i" (_PAGE_CP_4V | _PAGE_CV_4V), "i" (_PAGE_E_4V)); | ||||
| 	             "i" (_PAGE_CP_4V | _PAGE_CV_4V), "i" (_PAGE_E_4V), | ||||
| 	             "i" (_PAGE_CP_4V)); | ||||
| 
 | ||||
| 	return __pgprot(val); | ||||
| } | ||||
|  |  | |||
|  | @ -40,11 +40,12 @@ static inline int pcibus_to_node(struct pci_bus *pbus) | |||
| #ifdef CONFIG_SMP | ||||
| #define topology_physical_package_id(cpu)	(cpu_data(cpu).proc_id) | ||||
| #define topology_core_id(cpu)			(cpu_data(cpu).core_id) | ||||
| #define topology_core_cpumask(cpu)		(&cpu_core_map[cpu]) | ||||
| #define topology_core_cpumask(cpu)		(&cpu_core_sib_map[cpu]) | ||||
| #define topology_sibling_cpumask(cpu)		(&per_cpu(cpu_sibling_map, cpu)) | ||||
| #endif /* CONFIG_SMP */ | ||||
| 
 | ||||
| extern cpumask_t cpu_core_map[NR_CPUS]; | ||||
| extern cpumask_t cpu_core_sib_map[NR_CPUS]; | ||||
| static inline const struct cpumask *cpu_coregroup_mask(int cpu) | ||||
| { | ||||
|         return &cpu_core_map[cpu]; | ||||
|  |  | |||
|  | @ -79,6 +79,8 @@ struct sun4v_2insn_patch_entry { | |||
| }; | ||||
| extern struct sun4v_2insn_patch_entry __sun4v_2insn_patch, | ||||
| 	__sun4v_2insn_patch_end; | ||||
| extern struct sun4v_2insn_patch_entry __sun_m7_2insn_patch, | ||||
| 	__sun_m7_2insn_patch_end; | ||||
| 
 | ||||
| 
 | ||||
| #endif /* !(__ASSEMBLY__) */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ingo Molnar
				Ingo Molnar