Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
eb67cf14
Commit
eb67cf14
authored
Nov 26, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Consolidate cpu_relax()/cpu_sleep() definitions across _32/_64.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
f74c034d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
arch/sh/include/asm/processor.h
arch/sh/include/asm/processor.h
+3
-0
arch/sh/include/asm/processor_32.h
arch/sh/include/asm/processor_32.h
+0
-3
arch/sh/include/asm/processor_64.h
arch/sh/include/asm/processor_64.h
+0
-2
No files found.
arch/sh/include/asm/processor.h
View file @
eb67cf14
...
...
@@ -82,6 +82,9 @@ extern struct sh_cpuinfo cpu_data[];
#define current_cpu_data cpu_data[smp_processor_id()]
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
#define cpu_relax() barrier()
/* Forward decl */
struct
seq_operations
;
...
...
arch/sh/include/asm/processor_32.h
View file @
eb67cf14
...
...
@@ -183,9 +183,6 @@ extern unsigned long get_wchan(struct task_struct *p);
#define user_stack_pointer(regs) ((regs)->regs[15])
#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
#define cpu_relax() barrier()
#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH3) || \
defined(CONFIG_CPU_SH4)
#define PREFETCH_STRIDE L1_CACHE_BYTES
...
...
arch/sh/include/asm/processor_64.h
View file @
eb67cf14
...
...
@@ -228,7 +228,5 @@ extern unsigned long get_wchan(struct task_struct *p);
#define user_stack_pointer(regs) ((regs)->sp)
#define cpu_relax() barrier()
#endif
/* __ASSEMBLY__ */
#endif
/* __ASM_SH_PROCESSOR_64_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment