Merge branch 'linus' into perfcounters/core
Merge reason: This brach was on -rc1, refresh it to almost-rc4 to pick up the latest upstream fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <asm/reg.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/mmu.h>
|
||||
@@ -50,7 +51,7 @@
|
||||
mtspr SPRN_DBAT##n##L,RB; \
|
||||
1:
|
||||
|
||||
.section .text.head, "ax"
|
||||
__HEAD
|
||||
.stabs "arch/powerpc/kernel/",N_SO,0,0,0f
|
||||
.stabs "head_32.S",N_SO,0,0,0f
|
||||
0:
|
||||
|
@@ -31,6 +31,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/mmu.h>
|
||||
@@ -52,7 +53,7 @@
|
||||
*
|
||||
* This is all going to change RSN when we add bi_recs....... -- Dan
|
||||
*/
|
||||
.section .text.head, "ax"
|
||||
__HEAD
|
||||
_ENTRY(_stext);
|
||||
_ENTRY(_start);
|
||||
|
||||
|
@@ -28,6 +28,7 @@
|
||||
* option) any later version.
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/mmu.h>
|
||||
@@ -50,7 +51,7 @@
|
||||
* r7 - End of kernel command line string
|
||||
*
|
||||
*/
|
||||
.section .text.head, "ax"
|
||||
__HEAD
|
||||
_ENTRY(_stext);
|
||||
_ENTRY(_start);
|
||||
/*
|
||||
|
@@ -19,6 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/mmu.h>
|
||||
@@ -38,7 +39,7 @@
|
||||
#else
|
||||
#define DO_8xx_CPU6(val, reg)
|
||||
#endif
|
||||
.section .text.head, "ax"
|
||||
__HEAD
|
||||
_ENTRY(_stext);
|
||||
_ENTRY(_start);
|
||||
|
||||
|
@@ -30,6 +30,7 @@
|
||||
* option) any later version.
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <linux/threads.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/page.h>
|
||||
@@ -53,7 +54,7 @@
|
||||
* r7 - End of kernel command line string
|
||||
*
|
||||
*/
|
||||
.section .text.head, "ax"
|
||||
__HEAD
|
||||
_ENTRY(_stext);
|
||||
_ENTRY(_start);
|
||||
/*
|
||||
|
@@ -971,7 +971,7 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
|
||||
struct device_node *p;
|
||||
const u32 *intspec, *tmp, *addr;
|
||||
u32 intsize, intlen;
|
||||
int res;
|
||||
int res = -EINVAL;
|
||||
|
||||
DBG("of_irq_map_one: dev=%s, index=%d\n", device->full_name, index);
|
||||
|
||||
@@ -995,21 +995,20 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
|
||||
|
||||
/* Get size of interrupt specifier */
|
||||
tmp = of_get_property(p, "#interrupt-cells", NULL);
|
||||
if (tmp == NULL) {
|
||||
of_node_put(p);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (tmp == NULL)
|
||||
goto out;
|
||||
intsize = *tmp;
|
||||
|
||||
DBG(" intsize=%d intlen=%d\n", intsize, intlen);
|
||||
|
||||
/* Check index */
|
||||
if ((index + 1) * intsize > intlen)
|
||||
return -EINVAL;
|
||||
goto out;
|
||||
|
||||
/* Get new specifier and map it */
|
||||
res = of_irq_map_raw(p, intspec + index * intsize, intsize,
|
||||
addr, out_irq);
|
||||
out:
|
||||
of_node_put(p);
|
||||
return res;
|
||||
}
|
||||
|
@@ -77,7 +77,7 @@
|
||||
#include <linux/clockchips.h>
|
||||
#include <linux/clocksource.h>
|
||||
|
||||
static cycle_t rtc_read(void);
|
||||
static cycle_t rtc_read(struct clocksource *);
|
||||
static struct clocksource clocksource_rtc = {
|
||||
.name = "rtc",
|
||||
.rating = 400,
|
||||
@@ -88,7 +88,7 @@ static struct clocksource clocksource_rtc = {
|
||||
.read = rtc_read,
|
||||
};
|
||||
|
||||
static cycle_t timebase_read(void);
|
||||
static cycle_t timebase_read(struct clocksource *);
|
||||
static struct clocksource clocksource_timebase = {
|
||||
.name = "timebase",
|
||||
.rating = 400,
|
||||
@@ -766,12 +766,12 @@ unsigned long read_persistent_clock(void)
|
||||
}
|
||||
|
||||
/* clocksource code */
|
||||
static cycle_t rtc_read(void)
|
||||
static cycle_t rtc_read(struct clocksource *cs)
|
||||
{
|
||||
return (cycle_t)get_rtc();
|
||||
}
|
||||
|
||||
static cycle_t timebase_read(void)
|
||||
static cycle_t timebase_read(struct clocksource *cs)
|
||||
{
|
||||
return (cycle_t)get_tb();
|
||||
}
|
||||
|
@@ -52,9 +52,10 @@ SECTIONS
|
||||
/* Text and gots */
|
||||
.text : AT(ADDR(.text) - LOAD_OFFSET) {
|
||||
ALIGN_FUNCTION();
|
||||
*(.text.head)
|
||||
HEAD_TEXT
|
||||
_text = .;
|
||||
*(.text .fixup .text.init.refok .exit.text.refok __ftr_alt_*)
|
||||
/* careful! __ftr_alt_* sections need to be close to .text */
|
||||
*(.text .fixup __ftr_alt_* .ref.text)
|
||||
SCHED_TEXT
|
||||
LOCK_TEXT
|
||||
KPROBES_TEXT
|
||||
|
Reference in New Issue
Block a user