Skip to content

Commit ef790fe

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: sparc: using HZ needs an include of linux/param.h sparc32: convert to asm-generic/hardirq.h sparc64: Cache per-cpu %pcr register value in perf code. sparc64: Fix comment typo in perf_event.c sparc64: Minor coding style fixups in perf code. sparc64: Add a basic conflict engine in preparation for multi-counter support. sparc64: Increase vmalloc size to fix percpu regressions. sparc64: Add initial perf event conflict resolution and checks. sparc: Niagara1 perf event support. sparc: Add Niagara2 HW cache event support. sparc: Support all ultra3 and ultra4 derivatives. sparc: Support HW cache events.
2 parents ed3c661 + c4a5743 commit ef790fe

6 files changed

Lines changed: 547 additions & 59 deletions

File tree

‎arch/sparc/include/asm/hardirq_32.h‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,7 @@
77
#ifndef __SPARC_HARDIRQ_H
88
#define __SPARC_HARDIRQ_H
99

10-
#include <linux/threads.h>
11-
#include <linux/spinlock.h>
12-
#include <linux/cache.h>
13-
14-
/* entry.S is sensitive to the offsets of these fields */ /* XXX P3 Is it? */
15-
typedef struct {
16-
unsigned int __softirq_pending;
17-
} ____cacheline_aligned irq_cpustat_t;
18-
19-
#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
20-
2110
#define HARDIRQ_BITS 8
11+
#include <asm-generic/hardirq.h>
2212

2313
#endif /* __SPARC_HARDIRQ_H */

‎arch/sparc/include/asm/irq_32.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#ifndef _SPARC_IRQ_H
77
#define _SPARC_IRQ_H
88

9-
#include <linux/interrupt.h>
10-
119
#define NR_IRQS 16
1210

11+
#include <linux/interrupt.h>
12+
1313
#define irq_canonicalize(irq) (irq)
1414

1515
extern void __init init_IRQ(void);

‎arch/sparc/include/asm/pgtable_64.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
#define LOW_OBP_ADDRESS _AC(0x00000000f0000000,UL)
4242
#define HI_OBP_ADDRESS _AC(0x0000000100000000,UL)
4343
#define VMALLOC_START _AC(0x0000000100000000,UL)
44-
#define VMALLOC_END _AC(0x0000000200000000,UL)
45-
#define VMEMMAP_BASE _AC(0x0000000200000000,UL)
44+
#define VMALLOC_END _AC(0x0000010000000000,UL)
45+
#define VMEMMAP_BASE _AC(0x0000010000000000,UL)
4646

4747
#define vmemmap ((struct page *)VMEMMAP_BASE)
4848

‎arch/sparc/kernel/ktlb.S‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ kvmap_dtlb_nonlinear:
280280

281281
#ifdef CONFIG_SPARSEMEM_VMEMMAP
282282
/* Do not use the TSB for vmemmap. */
283-
mov (VMEMMAP_BASE >> 24), %g5
284-
sllx %g5, 24, %g5
283+
mov (VMEMMAP_BASE >> 40), %g5
284+
sllx %g5, 40, %g5
285285
cmp %g4,%g5
286286
bgeu,pn %xcc, kvmap_vmemmap
287287
nop
@@ -293,8 +293,8 @@ kvmap_dtlb_tsbmiss:
293293
sethi %hi(MODULES_VADDR), %g5
294294
cmp %g4, %g5
295295
blu,pn %xcc, kvmap_dtlb_longpath
296-
mov (VMALLOC_END >> 24), %g5
297-
sllx %g5, 24, %g5
296+
mov (VMALLOC_END >> 40), %g5
297+
sllx %g5, 40, %g5
298298
cmp %g4, %g5
299299
bgeu,pn %xcc, kvmap_dtlb_longpath
300300
nop

0 commit comments

Comments
 (0)