Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154813
b: refs/heads/master
c: bdae997
h: refs/heads/master
i:
  154811: 08704f2
v: v3
  • Loading branch information
Keith Packard authored and Eric Paris committed Jul 2, 2009
1 parent b4c5a7e commit e0c5312
Show file tree
Hide file tree
Showing 44 changed files with 640 additions and 1,397 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: 5291a12f0503e31e0b8e90ee8e4997d59c1c3aad
refs/heads/master: bdae997f44535ac4ebe1e055ffe59eeee946f453
1 change: 0 additions & 1 deletion trunk/arch/frv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ config FRV
default y
select HAVE_IDE
select HAVE_ARCH_TRACEHOOK
select HAVE_PERF_COUNTERS

config ZONE_DMA
bool
Expand Down
68 changes: 2 additions & 66 deletions trunk/arch/frv/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,72 +121,10 @@ static inline void atomic_dec(atomic_t *v)
#define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
#define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)

/*
* 64-bit atomic ops
*/
typedef struct {
volatile long long counter;
} atomic64_t;

#define ATOMIC64_INIT(i) { (i) }

static inline long long atomic64_read(atomic64_t *v)
{
long long counter;

asm("ldd%I1 %M1,%0"
: "=e"(counter)
: "m"(v->counter));
return counter;
}

static inline void atomic64_set(atomic64_t *v, long long i)
{
asm volatile("std%I0 %1,%M0"
: "=m"(v->counter)
: "e"(i));
}

extern long long atomic64_inc_return(atomic64_t *v);
extern long long atomic64_dec_return(atomic64_t *v);
extern long long atomic64_add_return(long long i, atomic64_t *v);
extern long long atomic64_sub_return(long long i, atomic64_t *v);

static inline long long atomic64_add_negative(long long i, atomic64_t *v)
{
return atomic64_add_return(i, v) < 0;
}

static inline void atomic64_add(long long i, atomic64_t *v)
{
atomic64_add_return(i, v);
}

static inline void atomic64_sub(long long i, atomic64_t *v)
{
atomic64_sub_return(i, v);
}

static inline void atomic64_inc(atomic64_t *v)
{
atomic64_inc_return(v);
}

static inline void atomic64_dec(atomic64_t *v)
{
atomic64_dec_return(v);
}

#define atomic64_sub_and_test(i,v) (atomic64_sub_return((i), (v)) == 0)
#define atomic64_dec_and_test(v) (atomic64_dec_return((v)) == 0)
#define atomic64_inc_and_test(v) (atomic64_inc_return((v)) == 0)

/*****************************************************************************/
/*
* exchange value with memory
*/
extern uint64_t __xchg_64(uint64_t i, volatile void *v);

#ifndef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS

#define xchg(ptr, x) \
Expand Down Expand Up @@ -236,10 +174,8 @@ extern uint32_t __xchg_32(uint32_t i, volatile void *v);

#define tas(ptr) (xchg((ptr), 1))

#define atomic_cmpxchg(v, old, new) (cmpxchg(&(v)->counter, old, new))
#define atomic_xchg(v, new) (xchg(&(v)->counter, new))
#define atomic64_cmpxchg(v, old, new) (__cmpxchg_64(old, new, &(v)->counter))
#define atomic64_xchg(v, new) (__xchg_64(new, &(v)->counter))
#define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
#define atomic_xchg(v, new) (xchg(&((v)->counter), new))

static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
{
Expand Down
17 changes: 0 additions & 17 deletions trunk/arch/frv/include/asm/perf_counter.h

This file was deleted.

2 changes: 0 additions & 2 deletions trunk/arch/frv/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ extern void free_initmem(void);
* - if (*ptr == test) then orig = *ptr; *ptr = test;
* - if (*ptr != test) then orig = *ptr;
*/
extern uint64_t __cmpxchg_64(uint64_t test, uint64_t new, volatile uint64_t *v);

#ifndef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS

#define cmpxchg(ptr, test, new) \
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/frv/kernel/frv_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ EXPORT_SYMBOL(atomic_sub_return);
EXPORT_SYMBOL(__xchg_32);
EXPORT_SYMBOL(__cmpxchg_32);
#endif
EXPORT_SYMBOL(atomic64_add_return);
EXPORT_SYMBOL(atomic64_sub_return);
EXPORT_SYMBOL(__xchg_64);
EXPORT_SYMBOL(__cmpxchg_64);

EXPORT_SYMBOL(__debug_bug_printk);
EXPORT_SYMBOL(__delay_loops_MHz);
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/frv/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

lib-y := \
__ashldi3.o __lshrdi3.o __muldi3.o __ashrdi3.o __negdi2.o __ucmpdi2.o \
checksum.o memcpy.o memset.o atomic-ops.o atomic64-ops.o \
outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o perf_counter.o
checksum.o memcpy.o memset.o atomic-ops.o \
outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o
3 changes: 2 additions & 1 deletion trunk/arch/frv/lib/atomic-ops.S
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,11 @@ __cmpxchg_32:
ld.p @(gr11,gr0),gr8
orcr cc7,cc7,cc3
subcc gr8,gr9,gr7,icc0
bnelr icc0,#0
bne icc0,#0,1f
cst.p gr10,@(gr11,gr0) ,cc3,#1
corcc gr29,gr29,gr0 ,cc3,#1
beq icc3,#0,0b
1:
bralr

.size __cmpxchg_32, .-__cmpxchg_32
162 changes: 0 additions & 162 deletions trunk/arch/frv/lib/atomic64-ops.S

This file was deleted.

19 changes: 0 additions & 19 deletions trunk/arch/frv/lib/perf_counter.c

This file was deleted.

4 changes: 4 additions & 0 deletions trunk/arch/sh/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ config EARLY_PRINTK
select both the EARLY_SCIF_CONSOLE and SH_STANDARD_BIOS, using
the kernel command line option to toggle back and forth.

config DEBUG_BOOTMEM
depends on DEBUG_KERNEL
bool "Debug BOOTMEM initialization"

config DEBUG_STACKOVERFLOW
bool "Check for stack overflows"
depends on DEBUG_KERNEL && SUPERH32
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/mach-se/7206/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ unsigned char se7206_inb_p(unsigned long port)

unsigned short se7206_inw(unsigned long port)
{
return *port2adr(port);
return *port2adr(port);;
}

void se7206_outb(unsigned char value, unsigned long port)
Expand Down
Loading

0 comments on commit e0c5312

Please sign in to comment.