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
8b5bdd85
Commit
8b5bdd85
authored
Aug 07, 2017
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Static initialization of pcxl_res_lock spinlock
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
da3dc73e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
arch/parisc/kernel/pci-dma.c
arch/parisc/kernel/pci-dma.c
+1
-2
No files found.
arch/parisc/kernel/pci-dma.c
View file @
8b5bdd85
...
@@ -41,7 +41,7 @@ static unsigned long pcxl_used_bytes __read_mostly = 0;
...
@@ -41,7 +41,7 @@ static unsigned long pcxl_used_bytes __read_mostly = 0;
static
unsigned
long
pcxl_used_pages
__read_mostly
=
0
;
static
unsigned
long
pcxl_used_pages
__read_mostly
=
0
;
extern
unsigned
long
pcxl_dma_start
;
/* Start of pcxl dma mapping area */
extern
unsigned
long
pcxl_dma_start
;
/* Start of pcxl dma mapping area */
static
spinlock_t
pcxl_res_lock
;
static
DEFINE_SPINLOCK
(
pcxl_res_lock
)
;
static
char
*
pcxl_res_map
;
static
char
*
pcxl_res_map
;
static
int
pcxl_res_hint
;
static
int
pcxl_res_hint
;
static
int
pcxl_res_size
;
static
int
pcxl_res_size
;
...
@@ -390,7 +390,6 @@ pcxl_dma_init(void)
...
@@ -390,7 +390,6 @@ pcxl_dma_init(void)
if
(
pcxl_dma_start
==
0
)
if
(
pcxl_dma_start
==
0
)
return
0
;
return
0
;
spin_lock_init
(
&
pcxl_res_lock
);
pcxl_res_size
=
PCXL_DMA_MAP_SIZE
>>
(
PAGE_SHIFT
+
3
);
pcxl_res_size
=
PCXL_DMA_MAP_SIZE
>>
(
PAGE_SHIFT
+
3
);
pcxl_res_hint
=
0
;
pcxl_res_hint
=
0
;
pcxl_res_map
=
(
char
*
)
__get_free_pages
(
GFP_KERNEL
,
pcxl_res_map
=
(
char
*
)
__get_free_pages
(
GFP_KERNEL
,
...
...
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