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
100531e9
Commit
100531e9
authored
Jun 10, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: export timebase frequency in /proc/cpuinfo
parent
670475f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
arch/ppc64/kernel/chrp_setup.c
arch/ppc64/kernel/chrp_setup.c
+4
-0
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/setup.c
+1
-1
No files found.
arch/ppc64/kernel/chrp_setup.c
View file @
100531e9
...
@@ -108,12 +108,16 @@ extern int rd_prompt; /* 1 = prompt for ramdisk, 0 = don't prompt */
...
@@ -108,12 +108,16 @@ extern int rd_prompt; /* 1 = prompt for ramdisk, 0 = don't prompt */
extern
int
rd_image_start
;
/* starting block # of image */
extern
int
rd_image_start
;
/* starting block # of image */
#endif
#endif
extern
unsigned
long
ppc_tb_freq
;
void
void
chrp_get_cpuinfo
(
struct
seq_file
*
m
)
chrp_get_cpuinfo
(
struct
seq_file
*
m
)
{
{
struct
device_node
*
root
;
struct
device_node
*
root
;
const
char
*
model
=
""
;
const
char
*
model
=
""
;
seq_printf
(
m
,
"timebase
\t
: %lu
\n
"
,
ppc_tb_freq
);
root
=
find_path_device
(
"/"
);
root
=
find_path_device
(
"/"
);
if
(
root
)
if
(
root
)
model
=
get_property
(
root
,
"model"
,
NULL
);
model
=
get_property
(
root
,
"model"
,
NULL
);
...
...
arch/ppc64/kernel/setup.c
View file @
100531e9
...
@@ -337,7 +337,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
...
@@ -337,7 +337,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if
(
ppc_md
.
setup_residual
!=
NULL
)
if
(
ppc_md
.
setup_residual
!=
NULL
)
ppc_md
.
setup_residual
(
m
,
cpu_id
);
ppc_md
.
setup_residual
(
m
,
cpu_id
);
seq_printf
(
m
,
"revision
\t
: %hd.%hd
\n
"
,
maj
,
min
);
seq_printf
(
m
,
"revision
\t
: %hd.%hd
\n
\n
"
,
maj
,
min
);
return
0
;
return
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