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
a6b5d744
Commit
a6b5d744
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 2.1.133pre5
parent
b7cd5844
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
20 deletions
+13
-20
arch/i386/kernel/smp.c
arch/i386/kernel/smp.c
+0
-17
include/asm-i386/system.h
include/asm-i386/system.h
+11
-0
include/asm-i386/system.h.lock~
include/asm-i386/system.h.lock~
+0
-1
kernel/sched.c
kernel/sched.c
+2
-2
No files found.
arch/i386/kernel/smp.c
View file @
a6b5d744
...
...
@@ -44,7 +44,6 @@
#include <asm/bitops.h>
#include <asm/pgtable.h>
#include <asm/io.h>
#include <linux/io_trace.h>
#ifdef CONFIG_MTRR
# include <asm/mtrr.h>
...
...
@@ -1225,12 +1224,10 @@ static inline unsigned int __get_ICR (void)
int
count
=
0
;
unsigned
int
cfg
;
IO_trace
(
IO_smp_wait_apic_start
,
0
,
0
,
0
,
0
);
while
(
count
<
1000
)
{
cfg
=
slow_ICR
;
if
(
!
(
cfg
&
(
1
<<
12
)))
{
IO_trace
(
IO_smp_wait_apic_end
,
0
,
0
,
0
,
0
);
if
(
count
)
atomic_add
(
count
,
(
atomic_t
*
)
&
ipi_count
);
return
cfg
;
...
...
@@ -1299,9 +1296,6 @@ static inline void __send_IPI_shortcut(unsigned int shortcut, int vector)
/*
* Send the IPI. The write to APIC_ICR fires this off.
*/
IO_trace
(
IO_smp_send_ipi
,
shortcut
,
vector
,
cfg
,
0
);
apic_write
(
APIC_ICR
,
cfg
);
#if FORCE_APIC_SERIALIZATION
__restore_flags
(
flags
);
...
...
@@ -1348,9 +1342,6 @@ static inline void send_IPI_single(int dest, int vector)
/*
* Send the IPI. The write to APIC_ICR fires this off.
*/
IO_trace
(
IO_smp_send_ipi
,
dest
,
vector
,
cfg
,
0
);
apic_write
(
APIC_ICR
,
cfg
);
#if FORCE_APIC_SERIALIZATION
__restore_flags
(
flags
);
...
...
@@ -1390,8 +1381,6 @@ void smp_flush_tlb(void)
__save_flags
(
flags
);
__cli
();
IO_trace
(
IO_smp_message
,
0
,
0
,
0
,
0
);
send_IPI_allbutself
(
INVALIDATE_TLB_VECTOR
);
/*
...
...
@@ -1556,9 +1545,6 @@ void smp_apic_timer_interrupt(struct pt_regs * regs)
*/
asmlinkage
void
smp_reschedule_interrupt
(
void
)
{
IO_trace
(
IO_smp_reschedule
,
current
->
need_resched
,
current
->
priority
,
current
->
counter
,
0
);
ack_APIC_irq
();
}
...
...
@@ -1567,9 +1553,6 @@ asmlinkage void smp_reschedule_interrupt(void)
*/
asmlinkage
void
smp_invalidate_interrupt
(
void
)
{
IO_trace
(
IO_smp_tlbflush
,
atomic_read
((
atomic_t
*
)
&
smp_invalidate_needed
),
0
,
0
,
0
);
if
(
test_and_clear_bit
(
smp_processor_id
(),
&
smp_invalidate_needed
))
local_flush_tlb
();
...
...
include/asm-i386/system.h
View file @
a6b5d744
...
...
@@ -165,8 +165,19 @@ static inline unsigned long __xchg(unsigned long x, void * ptr, int size)
* Force strict CPU ordering.
* And yes, this is required on UP too when we're talking
* to devices.
*
* For now, "wmb()" doesn't actually do anything, as all
* intel CPU's follow what intel calls a *Processor Order*,
* in which all writes are seen in the program order even
* outside the CPU.
*
* I expect future intel CPU's to have a weaker ordering,
* but I'd also expect them to finally get their act together
* and add some real memory barriers if so.
*/
#define mb() __asm__ __volatile__ ("lock; addl $0,0(%%esp)": : :"memory")
#define rmb() mb()
#define wmb() __asm__ __volatile__ ("": : :"memory")
/* interrupt control.. */
#define __sti() __asm__ __volatile__ ("sti": : :"memory")
...
...
include/asm-i386/system.h.lock~
deleted
100644 → 0
View file @
b7cd5844
torvalds@penguin.transmeta.com
\ No newline at end of file
kernel/sched.c
View file @
a6b5d744
...
...
@@ -594,9 +594,9 @@ static inline void __schedule_tail (void)
* We have dropped all locks, and we must make sure that we
* only mark the previous process as no longer having a CPU
* after all other state has been seen by other CPU's. Thus
* the memory barrier!
* the
write
memory barrier!
*/
mb
();
w
mb
();
sched_data
->
prev
->
has_cpu
=
0
;
#endif
/* __SMP__ */
}
...
...
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