Skip to content

Commit 9a46649

Browse files
drivers: kprofiles: Mark active_mode() as inline
Inlining functions can speed up its calls and reduce overhead as the procedure of how kprofiles work is like this: CIB/devfreq_boost -> active_mode() -> enabled If we inline active_mode() and it can perform faster. Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
1 parent 46f7ee1 commit 9a46649

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/misc/kprofiles.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
static unsigned int enabled = 2;
1111
module_param(enabled, uint, 0664);
1212

13-
14-
unsigned int active_mode(void)
13+
inline unsigned int active_mode(void)
1514
{
1615
switch(enabled)
1716
{

0 commit comments

Comments
 (0)