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
nexedi
linux
Commits
85f1e1f6
Commit
85f1e1f6
authored
Mar 15, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use DECLARE_BITMAP and BITS_TO_LONGS in mm/init.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5be4a963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
arch/sparc64/mm/init.c
arch/sparc64/mm/init.c
+7
-6
No files found.
arch/sparc64/mm/init.c
View file @
85f1e1f6
...
...
@@ -149,12 +149,6 @@ unsigned long *sparc64_valid_addr_bitmap __read_mostly;
unsigned
long
kern_base
__read_mostly
;
unsigned
long
kern_size
__read_mostly
;
/* get_new_mmu_context() uses "cache + 1". */
DEFINE_SPINLOCK
(
ctx_alloc_lock
);
unsigned
long
tlb_context_cache
=
CTX_FIRST_VERSION
-
1
;
#define CTX_BMAP_SLOTS (1UL << (CTX_NR_BITS - 6))
unsigned
long
mmu_context_bmap
[
CTX_BMAP_SLOTS
];
/* Initial ramdisk setup */
extern
unsigned
long
sparc_ramdisk_image64
;
extern
unsigned
int
sparc_ramdisk_image
;
...
...
@@ -701,6 +695,13 @@ void __flush_dcache_range(unsigned long start, unsigned long end)
}
#endif
/* DCACHE_ALIASING_POSSIBLE */
/* get_new_mmu_context() uses "cache + 1". */
DEFINE_SPINLOCK
(
ctx_alloc_lock
);
unsigned
long
tlb_context_cache
=
CTX_FIRST_VERSION
-
1
;
#define MAX_CTX_NR (1UL << CTX_NR_BITS)
#define CTX_BMAP_SLOTS BITS_TO_LONGS(MAX_CTX_NR)
DECLARE_BITMAP
(
mmu_context_bmap
,
MAX_CTX_NR
);
/* Caller does TLB context flushing on local CPU if necessary.
* The caller also ensures that CTX_VALID(mm->context) is false.
*
...
...
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