Merge commit 'v2.6.35-rc6' into devicetree/next
Conflicts: arch/sparc/kernel/prom_64.c
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/lmb.h>
|
||||
#include <linux/memblock.h>
|
||||
#include <linux/log2.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/slab.h>
|
||||
@@ -86,7 +86,7 @@ static void mdesc_handle_init(struct mdesc_handle *hp,
|
||||
hp->handle_size = handle_size;
|
||||
}
|
||||
|
||||
static struct mdesc_handle * __init mdesc_lmb_alloc(unsigned int mdesc_size)
|
||||
static struct mdesc_handle * __init mdesc_memblock_alloc(unsigned int mdesc_size)
|
||||
{
|
||||
unsigned int handle_size, alloc_size;
|
||||
struct mdesc_handle *hp;
|
||||
@@ -97,7 +97,7 @@ static struct mdesc_handle * __init mdesc_lmb_alloc(unsigned int mdesc_size)
|
||||
mdesc_size);
|
||||
alloc_size = PAGE_ALIGN(handle_size);
|
||||
|
||||
paddr = lmb_alloc(alloc_size, PAGE_SIZE);
|
||||
paddr = memblock_alloc(alloc_size, PAGE_SIZE);
|
||||
|
||||
hp = NULL;
|
||||
if (paddr) {
|
||||
@@ -107,7 +107,7 @@ static struct mdesc_handle * __init mdesc_lmb_alloc(unsigned int mdesc_size)
|
||||
return hp;
|
||||
}
|
||||
|
||||
static void mdesc_lmb_free(struct mdesc_handle *hp)
|
||||
static void mdesc_memblock_free(struct mdesc_handle *hp)
|
||||
{
|
||||
unsigned int alloc_size;
|
||||
unsigned long start;
|
||||
@@ -120,9 +120,9 @@ static void mdesc_lmb_free(struct mdesc_handle *hp)
|
||||
free_bootmem_late(start, alloc_size);
|
||||
}
|
||||
|
||||
static struct mdesc_mem_ops lmb_mdesc_ops = {
|
||||
.alloc = mdesc_lmb_alloc,
|
||||
.free = mdesc_lmb_free,
|
||||
static struct mdesc_mem_ops memblock_mdesc_ops = {
|
||||
.alloc = mdesc_memblock_alloc,
|
||||
.free = mdesc_memblock_free,
|
||||
};
|
||||
|
||||
static struct mdesc_handle *mdesc_kmalloc(unsigned int mdesc_size)
|
||||
@@ -914,7 +914,7 @@ void __init sun4v_mdesc_init(void)
|
||||
|
||||
printk("MDESC: Size is %lu bytes.\n", len);
|
||||
|
||||
hp = mdesc_alloc(len, &lmb_mdesc_ops);
|
||||
hp = mdesc_alloc(len, &memblock_mdesc_ops);
|
||||
if (hp == NULL) {
|
||||
prom_printf("MDESC: alloc of %lu bytes failed.\n", len);
|
||||
prom_halt();
|
||||
|
@@ -657,6 +657,7 @@ static u64 maybe_change_configuration(struct cpu_hw_events *cpuc, u64 pcr)
|
||||
cpuc->current_idx[i] = idx;
|
||||
|
||||
enc = perf_event_get_enc(cpuc->events[i]);
|
||||
pcr &= ~mask_for_index(idx);
|
||||
pcr |= event_encoding(enc, idx);
|
||||
}
|
||||
out:
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include <linux/string.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/lmb.h>
|
||||
#include <linux/memblock.h>
|
||||
#include <linux/of.h>
|
||||
|
||||
#include <asm/prom.h>
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
void * __init prom_early_alloc(unsigned long size)
|
||||
{
|
||||
unsigned long paddr = lmb_alloc(size, SMP_CACHE_BYTES);
|
||||
unsigned long paddr = memblock_alloc(size, SMP_CACHE_BYTES);
|
||||
void *ret;
|
||||
|
||||
if (!paddr) {
|
||||
|
@@ -183,7 +183,7 @@ void sun4d_free_irq(unsigned int irq, void *dev_id)
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
if (action && tmp)
|
||||
if (tmp)
|
||||
tmp->next = action->next;
|
||||
else
|
||||
*actionp = action->next;
|
||||
|
@@ -64,7 +64,7 @@ tl0_irq6: TRAP_IRQ(smp_call_function_single_client, 6)
|
||||
tl0_irq6: BTRAP(0x46)
|
||||
#endif
|
||||
tl0_irq7: TRAP_IRQ(deferred_pcr_work_irq, 7)
|
||||
#ifdef CONFIG_KGDB
|
||||
#if defined(CONFIG_KGDB) && defined(CONFIG_SMP)
|
||||
tl0_irq8: TRAP_IRQ(smp_kgdb_capture_client, 8)
|
||||
#else
|
||||
tl0_irq8: BTRAP(0x48)
|
||||
|
Reference in New Issue
Block a user