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
3ec85d14
Commit
3ec85d14
authored
Sep 19, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/asm-sparc64/system.h: Remove CHECK_LOCKS debugging.
parent
5413110a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
include/asm-sparc64/system.h
include/asm-sparc64/system.h
+1
-20
No files found.
include/asm-sparc64/system.h
View file @
3ec85d14
...
@@ -152,24 +152,6 @@ do { spin_unlock_irq(&(prev)->switch_lock); \
...
@@ -152,24 +152,6 @@ do { spin_unlock_irq(&(prev)->switch_lock); \
#define task_running(rq, p) \
#define task_running(rq, p) \
((rq)->curr == (p) || spin_is_locked(&(p)->switch_lock))
((rq)->curr == (p) || spin_is_locked(&(p)->switch_lock))
#ifndef CONFIG_DEBUG_SPINLOCK
#define CHECK_LOCKS(PREV) do { } while(0)
#else
/* CONFIG_DEBUG_SPINLOCK */
#define CHECK_LOCKS(PREV) \
if ((PREV)->thread.smp_lock_count) { \
unsigned long rpc; \
__asm__ __volatile__("mov %%i7, %0" : "=r" (rpc)); \
printk(KERN_CRIT "(%s)[%d]: Sleeping with %d locks held!\n", \
(PREV)->comm, (PREV)->pid, \
(PREV)->thread.smp_lock_count); \
printk(KERN_CRIT "(%s)[%d]: Last lock at %08x\n", \
(PREV)->comm, (PREV)->pid, \
(PREV)->thread.smp_lock_pc); \
printk(KERN_CRIT "(%s)[%d]: Sched caller %016lx\n", \
(PREV)->comm, (PREV)->pid, rpc); \
}
#endif
/* !(CONFIG_DEBUG_SPINLOCK) */
/* See what happens when you design the chip correctly?
/* See what happens when you design the chip correctly?
*
*
* We tell gcc we clobber all non-fixed-usage registers except
* We tell gcc we clobber all non-fixed-usage registers except
...
@@ -180,8 +162,7 @@ if ((PREV)->thread.smp_lock_count) { \
...
@@ -180,8 +162,7 @@ if ((PREV)->thread.smp_lock_count) { \
* and 2 stores in this critical code path. -DaveM
* and 2 stores in this critical code path. -DaveM
*/
*/
#define switch_to(prev, next, last) \
#define switch_to(prev, next, last) \
do { CHECK_LOCKS(prev); \
do { if (test_thread_flag(TIF_PERFCTR)) { \
if (test_thread_flag(TIF_PERFCTR)) { \
unsigned long __tmp; \
unsigned long __tmp; \
read_pcr(__tmp); \
read_pcr(__tmp); \
current_thread_info()->pcr_reg = __tmp; \
current_thread_info()->pcr_reg = __tmp; \
...
...
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