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
07a57e67
Commit
07a57e67
authored
Jun 17, 2003
by
Jesse Barnes
Committed by
David Mosberger
Jun 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: mark_idle() fixes for sn2
Small patch to fixup the new mark_idle() stuff for sn2.
parent
c673e80e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
25 deletions
+11
-25
arch/ia64/sn/kernel/Makefile
arch/ia64/sn/kernel/Makefile
+2
-1
arch/ia64/sn/kernel/idle.c
arch/ia64/sn/kernel/idle.c
+3
-3
arch/ia64/sn/kernel/setup.c
arch/ia64/sn/kernel/setup.c
+6
-21
No files found.
arch/ia64/sn/kernel/Makefile
View file @
07a57e67
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
EXTRA_CFLAGS
:=
-DLITTLE_ENDIAN
EXTRA_CFLAGS
:=
-DLITTLE_ENDIAN
obj-y
:=
probe.o setup.o sv.o bte.o irq.o mca.o sn2/
obj-y
:=
probe.o setup.o sv.o bte.o irq.o mca.o
\
idle.o sn2/
obj-$(CONFIG_IA64_GENERIC)
+=
machvec.o
obj-$(CONFIG_IA64_GENERIC)
+=
machvec.o
obj-$(CONFIG_MODULES)
+=
sn_ksyms.o
obj-$(CONFIG_MODULES)
+=
sn_ksyms.o
arch/ia64/sn/kernel/idle.c
View file @
07a57e67
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
void
snidle
(
int
state
)
{
void
snidle
(
int
state
)
{
if
(
state
)
{
if
(
state
)
{
if
(
pda
.
idle_flag
==
0
)
{
if
(
pda
->
idle_flag
==
0
)
{
/*
/*
* Turn the activity LED off.
* Turn the activity LED off.
*/
*/
...
@@ -24,13 +24,13 @@ void snidle(int state) {
...
@@ -24,13 +24,13 @@ void snidle(int state) {
SIMULATOR_SLEEP
();
SIMULATOR_SLEEP
();
#endif
#endif
pda
.
idle_flag
=
1
;
pda
->
idle_flag
=
1
;
}
else
{
}
else
{
/*
/*
* Turn the activity LED on.
* Turn the activity LED on.
*/
*/
set_led_bits
(
LED_CPU_ACTIVITY
,
LED_CPU_ACTIVITY
);
set_led_bits
(
LED_CPU_ACTIVITY
,
LED_CPU_ACTIVITY
);
pda
.
idle_flag
=
0
;
pda
->
idle_flag
=
0
;
}
}
}
}
arch/ia64/sn/kernel/setup.c
View file @
07a57e67
...
@@ -75,11 +75,13 @@ DEFINE_PER_CPU(struct pda_s, pda_percpu);
...
@@ -75,11 +75,13 @@ DEFINE_PER_CPU(struct pda_s, pda_percpu);
#define pxm_to_nasid(pxm) ((pxm)<<1)
#define pxm_to_nasid(pxm) ((pxm)<<1)
#define MAX_PHYS_MEMORY (1UL << 49)
/* 1 TB */
extern
void
bte_init_node
(
nodepda_t
*
,
cnodeid_t
);
extern
void
bte_init_node
(
nodepda_t
*
,
cnodeid_t
);
extern
void
bte_init_cpu
(
void
);
extern
void
bte_init_cpu
(
void
);
extern
void
sn_timer_init
(
void
);
extern
void
sn_timer_init
(
void
);
extern
void
(
*
ia64_mark_idle
)(
int
);
extern
void
(
*
ia64_mark_idle
)(
int
);
void
snidle
(
int
);
extern
void
snidle
(
int
);
unsigned
long
sn_rtc_cycles_per_second
;
unsigned
long
sn_rtc_cycles_per_second
;
...
@@ -296,21 +298,20 @@ sn_setup(char **cmdline_p)
...
@@ -296,21 +298,20 @@ sn_setup(char **cmdline_p)
*/
*/
sn_check_for_wars
();
sn_check_for_wars
();
ia64_mark_idle
=
&
snidle
;
/*
/*
* For the bootcpu, we do this here. All other cpus will make the
* For the bootcpu, we do this here. All other cpus will make the
* call as part of cpu_init in slave cpu initialization.
* call as part of cpu_init in slave cpu initialization.
*/
*/
sn_cpu_init
();
sn_cpu_init
();
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
init_smp_config
();
init_smp_config
();
#endif
#endif
screen_info
=
sn_screen_info
;
screen_info
=
sn_screen_info
;
sn_timer_init
();
sn_timer_init
();
ia64_mark_idle
=
&
snidle
;
}
}
/**
/**
...
@@ -438,19 +439,3 @@ sn_cpu_init(void)
...
@@ -438,19 +439,3 @@ sn_cpu_init(void)
bte_init_cpu
();
bte_init_cpu
();
}
}
void
snidle
(
int
idleness
)
{
if
(
!
idleness
)
{
if
(
pda
->
idle_flag
==
0
)
{
set_led_bits
(
0
,
LED_CPU_ACTIVITY
);
}
pda
->
idle_flag
=
1
;
}
else
{
set_led_bits
(
LED_CPU_ACTIVITY
,
LED_CPU_ACTIVITY
);
pda
->
idle_flag
=
0
;
}
}
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