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
55835eb6
Commit
55835eb6
authored
Feb 06, 2011
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'timers/locking'
parents
83a06bf5
f266a511
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
arch/x86/include/asm/mmu_context.h
arch/x86/include/asm/mmu_context.h
+3
-2
kernel/timer.c
kernel/timer.c
+5
-1
No files found.
arch/x86/include/asm/mmu_context.h
View file @
55835eb6
...
...
@@ -36,8 +36,6 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
unsigned
cpu
=
smp_processor_id
();
if
(
likely
(
prev
!=
next
))
{
/* stop flush ipis for the previous mm */
cpumask_clear_cpu
(
cpu
,
mm_cpumask
(
prev
));
#ifdef CONFIG_SMP
percpu_write
(
cpu_tlbstate
.
state
,
TLBSTATE_OK
);
percpu_write
(
cpu_tlbstate
.
active_mm
,
next
);
...
...
@@ -47,6 +45,9 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
/* Re-load page tables */
load_cr3
(
next
->
pgd
);
/* stop flush ipis for the previous mm */
cpumask_clear_cpu
(
cpu
,
mm_cpumask
(
prev
));
/*
* load the LDT, if the LDT is different:
*/
...
...
kernel/timer.c
View file @
55835eb6
...
...
@@ -969,10 +969,14 @@ EXPORT_SYMBOL(try_to_del_timer_sync);
int
del_timer_sync
(
struct
timer_list
*
timer
)
{
#ifdef CONFIG_LOCKDEP
unsigned
long
flags
;
raw_local_irq_save
(
flags
);
local_bh_disable
();
lock_map_acquire
(
&
timer
->
lockdep_map
);
lock_map_release
(
&
timer
->
lockdep_map
);
local_bh_enable
();
_local_bh_enable
();
raw_local_irq_restore
(
flags
);
#endif
/*
* don't use it in hardirq context, because it
...
...
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