Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
43b8515c
Commit
43b8515c
authored
Jul 28, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ibmphp_hpc: Convert to anon_semaphore
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
b6e47e97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/pci/hotplug/ibmphp_hpc.c
drivers/pci/hotplug/ibmphp_hpc.c
+5
-5
No files found.
drivers/pci/hotplug/ibmphp_hpc.c
View file @
43b8515c
...
...
@@ -104,7 +104,7 @@ static int to_debug = 0;
static
struct
mutex
sem_hpcaccess
;
// lock access to HPC
static
struct
semaphore
semOperations
;
// lock all operations and
// access to data structures
static
struct
semaphore
sem_exit
;
// make sure polling thread goes away
static
struct
anon_
semaphore
sem_exit
;
// make sure polling thread goes away
static
struct
task_struct
*
ibmphp_poll_thread
;
//----------------------------------------------------------------------------
// local function prototypes
...
...
@@ -133,7 +133,7 @@ void __init ibmphp_hpc_initvars (void)
mutex_init
(
&
sem_hpcaccess
);
semaphore_init
(
&
semOperations
);
semaphore_init_locked
(
&
sem_exit
);
anon_
semaphore_init_locked
(
&
sem_exit
);
to_debug
=
0
;
debug
(
"%s - Exit
\n
"
,
__func__
);
...
...
@@ -906,7 +906,7 @@ static int poll_hpc(void *data)
/* sleep for a short time just for good measure */
msleep
(
100
);
}
up
(
&
sem_exit
);
anon_
up
(
&
sem_exit
);
debug
(
"%s - Exit
\n
"
,
__func__
);
return
0
;
}
...
...
@@ -1076,7 +1076,7 @@ void __exit ibmphp_hpc_stop_poll_thread (void)
// wait for poll thread to exit
debug
(
"before sem_exit down
\n
"
);
down
(
&
sem_exit
);
anon_
down
(
&
sem_exit
);
debug
(
"after sem_exit down
\n
"
);
// cleanup
...
...
@@ -1085,7 +1085,7 @@ void __exit ibmphp_hpc_stop_poll_thread (void)
debug
(
"after free_hpc_access
\n
"
);
ibmphp_unlock_operations
();
debug
(
"after unlock operations
\n
"
);
up
(
&
sem_exit
);
anon_
up
(
&
sem_exit
);
debug
(
"after sem exit up
\n
"
);
debug
(
"%s - Exit
\n
"
,
__func__
);
...
...
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