-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 154814 b: refs/heads/master c: 746a99a h: refs/heads/master v: v3
- Loading branch information
Linus Torvalds
committed
Jul 2, 2009
1 parent
e0c5312
commit 081b6fc
Showing
43 changed files
with
1,397 additions
and
637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: bdae997f44535ac4ebe1e055ffe59eeee946f453 | ||
refs/heads/master: 746a99a5af60ee676afa2ba469ccd1373493c7e7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* FRV performance counter support | ||
* | ||
* Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. | ||
* Written by David Howells (dhowells@redhat.com) | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public Licence | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the Licence, or (at your option) any later version. | ||
*/ | ||
|
||
#ifndef _ASM_PERF_COUNTER_H | ||
#define _ASM_PERF_COUNTER_H | ||
|
||
#define PERF_COUNTER_INDEX_OFFSET 0 | ||
|
||
#endif /* _ASM_PERF_COUNTER_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
/* kernel atomic64 operations | ||
* | ||
* For an explanation of how atomic ops work in this arch, see: | ||
* Documentation/frv/atomic-ops.txt | ||
* | ||
* Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. | ||
* Written by David Howells (dhowells@redhat.com) | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the License, or (at your option) any later version. | ||
*/ | ||
|
||
#include <asm/spr-regs.h> | ||
|
||
.text | ||
.balign 4 | ||
|
||
|
||
############################################################################### | ||
# | ||
# long long atomic64_inc_return(atomic64_t *v) | ||
# | ||
############################################################################### | ||
.globl atomic64_inc_return | ||
.type atomic64_inc_return,@function | ||
atomic64_inc_return: | ||
or.p gr8,gr8,gr10 | ||
0: | ||
orcc gr0,gr0,gr0,icc3 /* set ICC3.Z */ | ||
ckeq icc3,cc7 | ||
ldd.p @(gr10,gr0),gr8 /* LDD.P/ORCR must be atomic */ | ||
orcr cc7,cc7,cc3 /* set CC3 to true */ | ||
addicc gr9,#1,gr9,icc0 | ||
addxi gr8,#0,gr8,icc0 | ||
cstd.p gr8,@(gr10,gr0) ,cc3,#1 | ||
corcc gr29,gr29,gr0 ,cc3,#1 /* clear ICC3.Z if store happens */ | ||
beq icc3,#0,0b | ||
bralr | ||
|
||
.size atomic64_inc_return, .-atomic64_inc_return | ||
|
||
############################################################################### | ||
# | ||
# long long atomic64_dec_return(atomic64_t *v) | ||
# | ||
############################################################################### | ||
.globl atomic64_dec_return | ||
.type atomic64_dec_return,@function | ||
atomic64_dec_return: | ||
or.p gr8,gr8,gr10 | ||
0: | ||
orcc gr0,gr0,gr0,icc3 /* set ICC3.Z */ | ||
ckeq icc3,cc7 | ||
ldd.p @(gr10,gr0),gr8 /* LDD.P/ORCR must be atomic */ | ||
orcr cc7,cc7,cc3 /* set CC3 to true */ | ||
subicc gr9,#1,gr9,icc0 | ||
subxi gr8,#0,gr8,icc0 | ||
cstd.p gr8,@(gr10,gr0) ,cc3,#1 | ||
corcc gr29,gr29,gr0 ,cc3,#1 /* clear ICC3.Z if store happens */ | ||
beq icc3,#0,0b | ||
bralr | ||
|
||
.size atomic64_dec_return, .-atomic64_dec_return | ||
|
||
############################################################################### | ||
# | ||
# long long atomic64_add_return(long long i, atomic64_t *v) | ||
# | ||
############################################################################### | ||
.globl atomic64_add_return | ||
.type atomic64_add_return,@function | ||
atomic64_add_return: | ||
or.p gr8,gr8,gr4 | ||
or gr9,gr9,gr5 | ||
0: | ||
orcc gr0,gr0,gr0,icc3 /* set ICC3.Z */ | ||
ckeq icc3,cc7 | ||
ldd.p @(gr10,gr0),gr8 /* LDD.P/ORCR must be atomic */ | ||
orcr cc7,cc7,cc3 /* set CC3 to true */ | ||
addcc gr9,gr5,gr9,icc0 | ||
addx gr8,gr4,gr8,icc0 | ||
cstd.p gr8,@(gr10,gr0) ,cc3,#1 | ||
corcc gr29,gr29,gr0 ,cc3,#1 /* clear ICC3.Z if store happens */ | ||
beq icc3,#0,0b | ||
bralr | ||
|
||
.size atomic64_add_return, .-atomic64_add_return | ||
|
||
############################################################################### | ||
# | ||
# long long atomic64_sub_return(long long i, atomic64_t *v) | ||
# | ||
############################################################################### | ||
.globl atomic64_sub_return | ||
.type atomic64_sub_return,@function | ||
atomic64_sub_return: | ||
or.p gr8,gr8,gr4 | ||
or gr9,gr9,gr5 | ||
0: | ||
orcc gr0,gr0,gr0,icc3 /* set ICC3.Z */ | ||
ckeq icc3,cc7 | ||
ldd.p @(gr10,gr0),gr8 /* LDD.P/ORCR must be atomic */ | ||
orcr cc7,cc7,cc3 /* set CC3 to true */ | ||
subcc gr9,gr5,gr9,icc0 | ||
subx gr8,gr4,gr8,icc0 | ||
cstd.p gr8,@(gr10,gr0) ,cc3,#1 | ||
corcc gr29,gr29,gr0 ,cc3,#1 /* clear ICC3.Z if store happens */ | ||
beq icc3,#0,0b | ||
bralr | ||
|
||
.size atomic64_sub_return, .-atomic64_sub_return | ||
|
||
############################################################################### | ||
# | ||
# uint64_t __xchg_64(uint64_t i, uint64_t *v) | ||
# | ||
############################################################################### | ||
.globl __xchg_64 | ||
.type __xchg_64,@function | ||
__xchg_64: | ||
or.p gr8,gr8,gr4 | ||
or gr9,gr9,gr5 | ||
0: | ||
orcc gr0,gr0,gr0,icc3 /* set ICC3.Z */ | ||
ckeq icc3,cc7 | ||
ldd.p @(gr10,gr0),gr8 /* LDD.P/ORCR must be atomic */ | ||
orcr cc7,cc7,cc3 /* set CC3 to true */ | ||
cstd.p gr4,@(gr10,gr0) ,cc3,#1 | ||
corcc gr29,gr29,gr0 ,cc3,#1 /* clear ICC3.Z if store happens */ | ||
beq icc3,#0,0b | ||
bralr | ||
|
||
.size __xchg_64, .-__xchg_64 | ||
|
||
############################################################################### | ||
# | ||
# uint64_t __cmpxchg_64(uint64_t test, uint64_t new, uint64_t *v) | ||
# | ||
############################################################################### | ||
.globl __cmpxchg_64 | ||
.type __cmpxchg_64,@function | ||
__cmpxchg_64: | ||
or.p gr8,gr8,gr4 | ||
or gr9,gr9,gr5 | ||
0: | ||
orcc gr0,gr0,gr0,icc3 /* set ICC3.Z */ | ||
ckeq icc3,cc7 | ||
ldd.p @(gr12,gr0),gr8 /* LDD.P/ORCR must be atomic */ | ||
orcr cc7,cc7,cc3 | ||
subcc gr8,gr4,gr0,icc0 | ||
subcc.p gr9,gr5,gr0,icc1 | ||
bnelr icc0,#0 | ||
bnelr icc1,#0 | ||
cstd.p gr10,@(gr12,gr0) ,cc3,#1 | ||
corcc gr29,gr29,gr0 ,cc3,#1 /* clear ICC3.Z if store happens */ | ||
beq icc3,#0,0b | ||
bralr | ||
|
||
.size __cmpxchg_64, .-__cmpxchg_64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Performance counter handling | ||
* | ||
* Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. | ||
* Written by David Howells (dhowells@redhat.com) | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public Licence | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the Licence, or (at your option) any later version. | ||
*/ | ||
|
||
#include <linux/perf_counter.h> | ||
|
||
/* | ||
* mark the performance counter as pending | ||
*/ | ||
void set_perf_counter_pending(void) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.