Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221674
b: refs/heads/master
c: 20f95e0
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Nov 1, 2010
1 parent 41addec commit bcd0bad
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ccedb20c6879ac0237b95b3500d69822f1e5e2ea
refs/heads/master: 20f95e0b22ea45c1798261064baab57efeb3b3bc
12 changes: 12 additions & 0 deletions trunk/arch/sh/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ static inline unsigned long long neff_sign_extend(unsigned long val)
#define PHYS_ADDR_MASK29 0x1fffffff
#define PHYS_ADDR_MASK32 0xffffffff

#ifdef CONFIG_PMB
static inline unsigned long phys_addr_mask(void)
{
/* Is the MMU in 29bit mode? */
Expand All @@ -74,6 +75,17 @@ static inline unsigned long phys_addr_mask(void)

return PHYS_ADDR_MASK32;
}
#elif defined(CONFIG_32BIT)
static inline unsigned long phys_addr_mask(void)
{
return PHYS_ADDR_MASK32;
}
#else
static inline unsigned long phys_addr_mask(void)
{
return PHYS_ADDR_MASK29;
}
#endif

#define PTE_PHYS_MASK (phys_addr_mask() & PAGE_MASK)
#define PTE_FLAGS_MASK (~(PTE_PHYS_MASK) << PAGE_SHIFT)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/sh/intc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void __init intc_register_irq(struct intc_desc *desc,
* Register the IRQ position with the global IRQ map, then insert
* it in to the radix tree.
*/
irq_reserve_irqs(irq, 1);
irq_reserve_irq(irq);

raw_spin_lock_irqsave(&intc_big_lock, flags);
radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq));
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/sh/intc/dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ void reserve_intc_vectors(struct intc_vect *vectors, unsigned int nr_vecs)
int i;

for (i = 0; i < nr_vecs; i++)
irq_reserve_irqs(evt2irq(vectors[i].vect), 1);
irq_reserve_irq(evt2irq(vectors[i].vect));
}
2 changes: 1 addition & 1 deletion trunk/fs/logfs/logfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ static inline int logfs_get_sb_bdev(struct logfs_super *s,

/* dev_mtd.c */
#ifdef CONFIG_MTD
int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr);
int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr)
#else
static inline int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr)
{
Expand Down
8 changes: 2 additions & 6 deletions trunk/include/linux/hardirq.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,11 @@
*/
#define in_nmi() (preempt_count() & NMI_MASK)

#if defined(CONFIG_PREEMPT) && defined(CONFIG_BKL)
# define PREEMPT_INATOMIC_BASE kernel_locked()
#else
# define PREEMPT_INATOMIC_BASE 0
#endif

#if defined(CONFIG_PREEMPT)
# define PREEMPT_INATOMIC_BASE kernel_locked()
# define PREEMPT_CHECK_OFFSET 1
#else
# define PREEMPT_INATOMIC_BASE 0
# define PREEMPT_CHECK_OFFSET 0
#endif

Expand Down
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ const char *sym_expand_string_value(const char *in)
symval = sym_get_string_value(sym);
}

newlen = strlen(res) + strlen(symval) + strlen(src) + 1;
newlen = strlen(res) + strlen(symval) + strlen(src);
if (newlen > reslen) {
reslen = newlen;
res = realloc(res, reslen);
Expand Down

0 comments on commit bcd0bad

Please sign in to comment.