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
f17af196
Commit
f17af196
authored
Jun 13, 2003
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
f32f886a
fb3e5c4e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
drivers/char/vt_ioctl.c
drivers/char/vt_ioctl.c
+2
-2
drivers/input/gameport/gameport.c
drivers/input/gameport/gameport.c
+1
-1
drivers/input/joystick/analog.c
drivers/input/joystick/analog.c
+1
-1
drivers/input/misc/pcspkr.c
drivers/input/misc/pcspkr.c
+1
-1
include/asm-i386/timex.h
include/asm-i386/timex.h
+1
-1
include/asm-x86_64/timex.h
include/asm-x86_64/timex.h
+1
-1
No files found.
drivers/char/vt_ioctl.c
View file @
f17af196
...
@@ -395,7 +395,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
...
@@ -395,7 +395,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
if
(
!
perm
)
if
(
!
perm
)
return
-
EPERM
;
return
-
EPERM
;
if
(
arg
)
if
(
arg
)
arg
=
119318
0
/
arg
;
arg
=
119318
2
/
arg
;
kd_mksound
(
arg
,
0
);
kd_mksound
(
arg
,
0
);
return
0
;
return
0
;
...
@@ -412,7 +412,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
...
@@ -412,7 +412,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
ticks
=
HZ
*
((
arg
>>
16
)
&
0xffff
)
/
1000
;
ticks
=
HZ
*
((
arg
>>
16
)
&
0xffff
)
/
1000
;
count
=
ticks
?
(
arg
&
0xffff
)
:
0
;
count
=
ticks
?
(
arg
&
0xffff
)
:
0
;
if
(
count
)
if
(
count
)
count
=
119318
0
/
count
;
count
=
119318
2
/
count
;
kd_mksound
(
count
,
ticks
);
kd_mksound
(
count
,
ticks
);
return
0
;
return
0
;
}
}
...
...
drivers/input/gameport/gameport.c
View file @
f17af196
...
@@ -37,7 +37,7 @@ static LIST_HEAD(gameport_dev_list);
...
@@ -37,7 +37,7 @@ static LIST_HEAD(gameport_dev_list);
#ifdef __i386__
#ifdef __i386__
#define DELTA(x,y) ((y)-(x)+((y)<(x)?119318
0
/HZ:0))
#define DELTA(x,y) ((y)-(x)+((y)<(x)?119318
2
/HZ:0))
#define GET_TIME(x) do { x = get_time_pit(); } while (0)
#define GET_TIME(x) do { x = get_time_pit(); } while (0)
static
unsigned
int
get_time_pit
(
void
)
static
unsigned
int
get_time_pit
(
void
)
...
...
drivers/input/joystick/analog.c
View file @
f17af196
...
@@ -138,7 +138,7 @@ struct analog_port {
...
@@ -138,7 +138,7 @@ struct analog_port {
#ifdef __i386__
#ifdef __i386__
#define GET_TIME(x) do { if (cpu_has_tsc) rdtscl(x); else x = get_time_pit(); } while (0)
#define GET_TIME(x) do { if (cpu_has_tsc) rdtscl(x); else x = get_time_pit(); } while (0)
#define DELTA(x,y) (cpu_has_tsc?((y)-(x)):((x)-(y)+((x)<(y)?119318
0
L/HZ:0)))
#define DELTA(x,y) (cpu_has_tsc?((y)-(x)):((x)-(y)+((x)<(y)?119318
2
L/HZ:0)))
#define TIME_NAME (cpu_has_tsc?"TSC":"PIT")
#define TIME_NAME (cpu_has_tsc?"TSC":"PIT")
static
unsigned
int
get_time_pit
(
void
)
static
unsigned
int
get_time_pit
(
void
)
{
{
...
...
drivers/input/misc/pcspkr.c
View file @
f17af196
...
@@ -43,7 +43,7 @@ static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int c
...
@@ -43,7 +43,7 @@ static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int c
}
}
if
(
value
>
20
&&
value
<
32767
)
if
(
value
>
20
&&
value
<
32767
)
count
=
1193182
/
value
;
count
=
CLOCK_TICK_RATE
/
value
;
spin_lock_irqsave
(
&
i8253_beep_lock
,
flags
);
spin_lock_irqsave
(
&
i8253_beep_lock
,
flags
);
...
...
include/asm-i386/timex.h
View file @
f17af196
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#ifdef CONFIG_MELAN
#ifdef CONFIG_MELAN
# define CLOCK_TICK_RATE 1189200
/* AMD Elan has different frequency! */
# define CLOCK_TICK_RATE 1189200
/* AMD Elan has different frequency! */
#else
#else
# define CLOCK_TICK_RATE 119318
0
/* Underlying HZ */
# define CLOCK_TICK_RATE 119318
2
/* Underlying HZ */
#endif
#endif
#endif
#endif
...
...
include/asm-x86_64/timex.h
View file @
f17af196
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#include <asm/msr.h>
#include <asm/msr.h>
#include <asm/vsyscall.h>
#include <asm/vsyscall.h>
#define CLOCK_TICK_RATE 119318
0
/* Underlying HZ */
#define CLOCK_TICK_RATE 119318
2
/* Underlying HZ */
#define CLOCK_TICK_FACTOR 20
/* Factor of both 1000000 and CLOCK_TICK_RATE */
#define CLOCK_TICK_FACTOR 20
/* Factor of both 1000000 and CLOCK_TICK_RATE */
#define FINETUNE ((((((int)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
#define FINETUNE ((((((int)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
(1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \
(1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \
...
...
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