Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Linux Next
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cristian Ciocaltea
Linux Next
Commits
2278caa3
Commit
2278caa3
authored
17 years ago
by
Paul Mundt
Browse files
Options
Downloads
Patches
Plain Diff
sh: Use generic SMP_CACHE_BYTES/L1_CACHE_ALIGN.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
3f9654f0
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/asm-sh/cache.h
+0
-3
0 additions, 3 deletions
include/asm-sh/cache.h
include/asm-sh/processor.h
+1
-1
1 addition, 1 deletion
include/asm-sh/processor.h
with
1 addition
and
4 deletions
include/asm-sh/cache.h
+
0
−
3
View file @
2278caa3
...
...
@@ -18,9 +18,6 @@
#define SH_CACHE_ASSOC 8
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
#ifndef __ASSEMBLY__
struct
cache_info
{
...
...
This diff is collapsed.
Click to expand it.
include/asm-sh/processor.h
+
1
−
1
View file @
2278caa3
...
...
@@ -71,7 +71,7 @@ struct sh_cpuinfo {
struct
cache_info
scache
;
/* Secondary cache */
unsigned
long
flags
;
}
__attribute__
((
aligned
(
SMP
_CACHE_BYTES
)));
}
__attribute__
((
aligned
(
L1
_CACHE_BYTES
)));
extern
struct
sh_cpuinfo
cpu_data
[];
#define boot_cpu_data cpu_data[0]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment