mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
declare struct ktime
Some smarty went and inflicted ktime_t as a typedef upon us, so we cannot forward declare it. Create a new `union ktime', map ktime_t onto that. Now we need to kill off this ktime_t thing. Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: john stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b8522ead35
commit
f34c506b03
1 changed files with 4 additions and 2 deletions
|
@ -43,7 +43,7 @@
|
||||||
* plain scalar nanosecond based representation can be selected by the
|
* plain scalar nanosecond based representation can be selected by the
|
||||||
* config switch CONFIG_KTIME_SCALAR.
|
* config switch CONFIG_KTIME_SCALAR.
|
||||||
*/
|
*/
|
||||||
typedef union {
|
union ktime {
|
||||||
s64 tv64;
|
s64 tv64;
|
||||||
#if BITS_PER_LONG != 64 && !defined(CONFIG_KTIME_SCALAR)
|
#if BITS_PER_LONG != 64 && !defined(CONFIG_KTIME_SCALAR)
|
||||||
struct {
|
struct {
|
||||||
|
@ -54,7 +54,9 @@ typedef union {
|
||||||
# endif
|
# endif
|
||||||
} tv;
|
} tv;
|
||||||
#endif
|
#endif
|
||||||
} ktime_t;
|
};
|
||||||
|
|
||||||
|
typedef union ktime ktime_t; /* Kill this */
|
||||||
|
|
||||||
#define KTIME_MAX ((s64)~((u64)1 << 63))
|
#define KTIME_MAX ((s64)~((u64)1 << 63))
|
||||||
#if (BITS_PER_LONG == 64)
|
#if (BITS_PER_LONG == 64)
|
||||||
|
|
Loading…
Reference in a new issue