Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef __KERNEL_RTPM_PRIO__ |
2 | #define __KERNEL_RTPM_PRIO__ | |
3 | ||
4 | #define CONFIG_MT_RT_MONITOR | |
5 | #ifdef CONFIG_MT_RT_MONITOR | |
6 | #define MT_ALLOW_RT_PRIO_BIT 0x10000000 | |
7 | #else | |
8 | #define MT_ALLOW_RT_PRIO_BIT 0x0 | |
9 | #endif | |
10 | ||
11 | #define REG_RT_PRIO(x) ((x) | MT_ALLOW_RT_PRIO_BIT) | |
12 | ||
13 | /*********************************************************************** | |
14 | * Processes scheduled under one of the real-time policies (SCHED_FIFO, SCHED_RR) | |
15 | * have a sched_priority value in the range: | |
16 | * 1 (low) to 99 (high). | |
17 | ************************************************************************/ | |
18 | /* ////////////////////////////////////////////////////////////////////// */ | |
19 | /* DEFINE MM GROUP PRIORITY */ | |
20 | #define RTPM_PRIO_MM_GROUP_BASE (10) | |
21 | #define RTPM_PRIO_MM_GROUP_A (RTPM_PRIO_MM_GROUP_BASE+0) | |
22 | #define RTPM_PRIO_MM_GROUP_B (RTPM_PRIO_MM_GROUP_BASE+10) | |
23 | #define RTPM_PRIO_MM_GROUP_C (RTPM_PRIO_MM_GROUP_BASE+20) | |
24 | #define RTPM_PRIO_MM_GROUP_D (RTPM_PRIO_MM_GROUP_BASE+30) | |
25 | #define RTPM_PRIO_MM_GROUP_E (RTPM_PRIO_MM_GROUP_BASE+40) | |
26 | #define RTPM_PRIO_MM_GROUP_F (RTPM_PRIO_MM_GROUP_BASE+50) | |
27 | #define RTPM_PRIO_MM_GROUP_G (RTPM_PRIO_MM_GROUP_BASE+60) | |
28 | #define RTPM_PRIO_MM_GROUP_H (RTPM_PRIO_MM_GROUP_BASE+70) | |
29 | #define RTPM_PRIO_MM_GROUP_I (RTPM_PRIO_MM_GROUP_BASE+80) | |
30 | ||
31 | /* ////////////////////////////////////////////////////////////////////// */ | |
32 | /* DEFIN MTK RT PRIORITY */ | |
33 | ||
34 | #define RTPM_PRIO_CPU_CALLBACK REG_RT_PRIO(98) | |
35 | #define RTPM_PRIO_SWLOCKUP REG_RT_PRIO(98) | |
36 | #define RTPM_PRIO_AED REG_RT_PRIO(28) | |
37 | #define RTPM_PRIO_WDT REG_RT_PRIO(99) | |
38 | ||
39 | #define RTPM_PRIO_TPD REG_RT_PRIO(4) | |
40 | #define RTPM_PRIO_KSDIOIRQ REG_RT_PRIO(1) | |
41 | #define RTPM_PRIO_MTLTE_SYS_SDIO_THREAD REG_RT_PRIO(1) | |
42 | ||
43 | #define RTPM_PRIO_AUDIO_PLAYBACK REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+5) | |
44 | #define RTPM_PRIO_VIDEO_PLAYBACK_THREAD REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+5) /* TimeEventQueue */ | |
45 | #define RTPM_PRIO_SCRN_UPDATE REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+4) | |
46 | #define RTPM_PRIO_AUDIO_COMMAND REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+2) | |
47 | #define RTPM_PRIO_AUDIO_CCCI_THREAD REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+2) | |
48 | ||
49 | #define RTPM_PRIO_CAMERA_TOPBASE REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+1) | |
50 | #define RTPM_PRIO_CAMERA_PREVIEW REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+1) | |
51 | #define RTPM_PRIO_CAMERA_COMPRESS REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+0) | |
52 | ||
53 | #define RTPM_PRIO_MATV_AUDIOPLAYER REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+0) | |
54 | #define RTPM_PRIO_FM_AUDIOPLAYER REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+0) | |
55 | #define RTPM_PRIO_AUDIO_I2S REG_RT_PRIO(RTPM_PRIO_MM_GROUP_I+0) | |
56 | ||
57 | #define RTPM_PRIO_CAMERA_DISPLAY REG_RT_PRIO(RTPM_PRIO_MM_GROUP_H+9) | |
58 | #define RTPM_PRIO_CAMERA_SHUTTER REG_RT_PRIO(RTPM_PRIO_MM_GROUP_H+9) | |
59 | #define RTPM_PRIO_CAMERA_RECORD REG_RT_PRIO(RTPM_PRIO_MM_GROUP_H+9) | |
60 | #define RTPM_PRIO_FB_THREAD REG_RT_PRIO(RTPM_PRIO_MM_GROUP_H+7) | |
61 | #define RTPM_PRIO_AUDIO_RECORD REG_RT_PRIO(RTPM_PRIO_MM_GROUP_H+6) | |
62 | #define RTPM_PRIO_VSYNC_THREAD REG_RT_PRIO(RTPM_PRIO_MM_GROUP_H+5) | |
63 | #define RTPM_PRIO_SURFACEFLINGER REG_RT_PRIO(RTPM_PRIO_MM_GROUP_H+4) | |
64 | ||
65 | #define RTPM_PRIO_VIDEO_YUV_BUFFER REG_RT_PRIO(RTPM_PRIO_MM_GROUP_G+8) | |
66 | #define RTPM_PRIO_OMX_AUDIO REG_RT_PRIO(RTPM_PRIO_MM_GROUP_G+6) | |
67 | #define RTPM_PRIO_OMX_CMD_AUDIO REG_RT_PRIO(RTPM_PRIO_MM_GROUP_G+6) | |
68 | #define RTPM_PRIO_OMX_VIDEO_ENCODE REG_RT_PRIO(RTPM_PRIO_MM_GROUP_G+5) | |
69 | #define RTPM_PRIO_OMX_VIDEO REG_RT_PRIO(RTPM_PRIO_MM_GROUP_G+5) | |
70 | #define RTPM_PRIO_OMX_VIDEO_DECODE REG_RT_PRIO(RTPM_PRIO_MM_GROUP_G+4) | |
71 | ||
72 | #define RTPM_PRIO_VIDEO_BS_BUFFER REG_RT_PRIO(RTPM_PRIO_MM_GROUP_G+3) | |
73 | #define RTPM_PRIO_MIDI_FILE REG_RT_PRIO(RTPM_PRIO_MM_GROUP_C+0) | |
74 | ||
75 | #define RTPM_PRIO_AUDIOTRACK_THREAD REG_RT_PRIO(1) | |
76 | #define RTPM_PRIO_GPS_DRIVER REG_RT_PRIO(1) | |
77 | /* Total */ | |
78 | #define RTPM_PRIO_NUM 30 | |
79 | /* ////////////////////////////////////////////////////////////////////////////// */ | |
80 | /* Removed */ | |
81 | /* #define RTPM_PRIO_FB_THREAD REG_RT_PRIO(87) */ | |
82 | /* #define RTPM_PRIO_SURFACE_OUT REG_RT_PRIO(80) */ | |
83 | ||
84 | #endif |