diff options
author | Haru <haru@dotalux.com> | 2016-03-13 15:48:14 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-12 20:58:42 +0200 |
commit | b9578c1d8ce54b48363e297b1c56cdea0ed72821 (patch) | |
tree | 4539010ef6af70a55b2b1515a464ebe3cfe60fcd /tools/HPMHookGen | |
parent | 8c66f639fdd495f3d28aac905acda823fc6a0ae6 (diff) | |
download | hercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.tar.gz hercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.tar.bz2 hercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.tar.xz hercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.zip |
Removed unnecessary typedefs from thread and spinlock
- SPIN_LOCK -> struct spin_lock
- rAthread -> struct thread_handle
- rAthreadProc -> threadFunc
- RATHREAD_PRIO -> enum thread_priority
- RAT_PRIO_LOW -> THREADPRIO_LOW
- RAT_PRIO_NORMAL -> THREADPRIO_NORMAL
- RAT_PRIO_HIGH -> THREADPRIO_HIGH
- RA_THREADS_MAX -> THREADS_MAX
Signed-off-by: Haru <haru@dotalux.com>
fixupthread
Diffstat (limited to 'tools/HPMHookGen')
-rwxr-xr-x | tools/HPMHookGen/HPMHookGen.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl index 75dd51736..2f22193f0 100755 --- a/tools/HPMHookGen/HPMHookGen.pl +++ b/tools/HPMHookGen/HPMHookGen.pl @@ -242,6 +242,8 @@ sub parse($$) { $rtinit = ' = PACKET_UNKNOWN'; } elsif ($x =~ /^(?:enum\s+)?DBOptions$/) { # Known enum DBOptions $rtinit = ' = DB_OPT_BASE'; + } elsif ($x =~ /^enum\s+thread_priority$/) { # Known enum DBOptions + $rtinit = ' = THREADPRIO_NORMAL'; } elsif ($x eq 'DBComparator' or $x eq 'DBHasher' or $x eq 'DBReleaser') { # DB function pointers $rtinit = ' = NULL'; } elsif ($x =~ /^(?:struct|union)\s+.*$/) { # Structs and unions |