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
9bba8dd6
Commit
9bba8dd6
authored
Feb 10, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Feb 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] uninline get_jiffies_64() for 32-bit architectures
uninline get_jiffies_64() for 32-bit architectures
parent
498b9cb8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
include/linux/jiffies.h
include/linux/jiffies.h
+4
-14
kernel/ksyms.c
kernel/ksyms.c
+3
-0
kernel/time.c
kernel/time.c
+14
-1
No files found.
include/linux/jiffies.h
View file @
9bba8dd6
...
@@ -15,24 +15,14 @@
...
@@ -15,24 +15,14 @@
extern
u64
jiffies_64
;
extern
u64
jiffies_64
;
extern
unsigned
long
volatile
jiffies
;
extern
unsigned
long
volatile
jiffies
;
#if (BITS_PER_LONG < 64)
u64
get_jiffies_64
(
void
);
#else
static
inline
u64
get_jiffies_64
(
void
)
static
inline
u64
get_jiffies_64
(
void
)
{
{
#if BITS_PER_LONG < 64
extern
seqlock_t
xtime_lock
;
unsigned
long
seq
;
u64
tmp
;
do
{
seq
=
read_seqbegin
(
&
xtime_lock
);
tmp
=
jiffies_64
;
}
while
(
read_seqretry
(
&
xtime_lock
,
seq
));
return
tmp
;
#else
return
(
u64
)
jiffies
;
return
(
u64
)
jiffies
;
#endif
}
}
#endif
/*
/*
* These inlines deal with timer wrapping correctly. You are
* These inlines deal with timer wrapping correctly. You are
...
...
kernel/ksyms.c
View file @
9bba8dd6
...
@@ -490,6 +490,9 @@ EXPORT_SYMBOL(xtime);
...
@@ -490,6 +490,9 @@ EXPORT_SYMBOL(xtime);
EXPORT_SYMBOL
(
xtime_lock
);
EXPORT_SYMBOL
(
xtime_lock
);
EXPORT_SYMBOL
(
do_gettimeofday
);
EXPORT_SYMBOL
(
do_gettimeofday
);
EXPORT_SYMBOL
(
do_settimeofday
);
EXPORT_SYMBOL
(
do_settimeofday
);
#if (BITS_PER_LONG < 64)
EXPORT_SYMBOL
(
get_jiffies_64
);
#endif
#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
EXPORT_SYMBOL
(
__might_sleep
);
EXPORT_SYMBOL
(
__might_sleep
);
#endif
#endif
...
...
kernel/time.c
View file @
9bba8dd6
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include <linux/timex.h>
#include <linux/timex.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
/*
/*
...
@@ -416,3 +415,17 @@ struct timespec current_kernel_time(void)
...
@@ -416,3 +415,17 @@ struct timespec current_kernel_time(void)
return
now
;
return
now
;
}
}
#if (BITS_PER_LONG < 64)
u64
get_jiffies_64
(
void
)
{
unsigned
long
seq
;
u64
ret
;
do
{
seq
=
read_seqbegin
(
&
xtime_lock
);
ret
=
jiffies_64
;
}
while
(
read_seqretry
(
&
xtime_lock
,
seq
));
return
ret
;
}
#endif
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