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
dc9a082e
Commit
dc9a082e
authored
Jul 17, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: misc cleanups
parent
e26f8684
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
17 deletions
+10
-17
arch/ppc64/kernel/irq.c
arch/ppc64/kernel/irq.c
+0
-3
arch/ppc64/kernel/time.c
arch/ppc64/kernel/time.c
+10
-7
arch/ppc64/xmon/xmon.c
arch/ppc64/xmon/xmon.c
+0
-7
No files found.
arch/ppc64/kernel/irq.c
View file @
dc9a082e
/*
*
*
* arch/ppc/kernel/irq.c
*
* Derived from arch/i386/kernel/irq.c
...
...
@@ -25,7 +23,6 @@
* should be easier.
*/
#include <linux/ptrace.h>
#include <linux/errno.h>
#include <linux/threads.h>
...
...
arch/ppc64/kernel/time.c
View file @
dc9a082e
...
...
@@ -182,9 +182,9 @@ static __inline__ void timer_sync_xtime( unsigned long cur_tb )
#ifdef CONFIG_PPC_ISERIES
/*
* This function recalibrates the timebase based on the 49-bit time-of-day
value in the Titan chip.
*
The Titan is much more accurate than the value returned by the service processor for th
e
* timebase frequency.
* This function recalibrates the timebase based on the 49-bit time-of-day
*
value in the Titan chip. The Titan is much more accurate than the valu
e
*
returned by the service processor for the
timebase frequency.
*/
static
void
iSeries_tb_recal
(
void
)
...
...
@@ -484,10 +484,10 @@ void __init time_init(void)
* After adjtimex is called, adjust the conversion of tb ticks
* to microseconds to keep do_gettimeofday synchronized
* with ntpd.
*
* Use the time_adjust, time_freq and time_offset computed by adjtimex to
* adjust the frequency.
*/
*/
/* #define DEBUG_PPC_ADJTIMEX 1 */
...
...
@@ -530,8 +530,11 @@ void ppc_adjtimex(void)
/* Compute parts per million frequency adjustment to match time_adjust */
singleshot_ppm
=
tickadj
*
HZ
;
/* The adjustment should be tickadj*HZ to match the code in linux/kernel/timer.c, but
experiments show that this is too large. 3/4 of tickadj*HZ seems about right */
/*
* The adjustment should be tickadj*HZ to match the code in
* linux/kernel/timer.c, but experiments show that this is too
* large. 3/4 of tickadj*HZ seems about right
*/
singleshot_ppm
-=
singleshot_ppm
/
4
;
/* Use SHIFT_USEC to get it into the same units as time_freq */
singleshot_ppm
<<=
SHIFT_USEC
;
...
...
arch/ppc64/xmon/xmon.c
View file @
dc9a082e
...
...
@@ -185,13 +185,6 @@ extern inline void sync(void)
asm
volatile
(
"sync; isync"
);
}
extern
inline
void
__delay
(
unsigned
int
loops
)
{
if
(
loops
!=
0
)
__asm__
__volatile__
(
"mtctr %0; 1: bdnz 1b"
:
:
"r"
(
loops
)
:
"ctr"
);
}
/* (Ref: 64-bit PowerPC ELF ABI Spplement; Ian Lance Taylor, Zembu Labs).
A PPC stack frame looks like this:
...
...
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