History

device.h: Add __cold to dev_<level> logging functions

Add __cold to the dev_<level> logging functions similar to the use of __cold in the generic printk function. Using __cold moves all the dev_<level> logging functions out-of-line possibly improving code locality and runtime performance.

Joe Perches committed 7 years ago

Commit 79a4e911 parent 7cbc2b41 file · +10 −10Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/device.h+10−10
@@ -1384,28 +1384,28 @@ void device_link_remove(void *consumer, struct device *supplier); · 1383 unmodified lines
13841384
13851385 #ifdef CONFIG_PRINTK
13861386
1387−__printf(3, 0)
1387+__printf(3, 0) __cold
13881388 int dev_vprintk_emit(int level, const struct device *dev,
13891389 const char *fmt, va_list args);
1390−__printf(3, 4)
1390+__printf(3, 4) __cold
13911391 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...);
13921392
1393−__printf(3, 4)
1393+__printf(3, 4) __cold
13941394 void dev_printk(const char *level, const struct device *dev,
13951395 const char *fmt, ...);
1396−__printf(2, 3)
1396+__printf(2, 3) __cold
13971397 void _dev_emerg(const struct device *dev, const char *fmt, ...);
1398−__printf(2, 3)
1398+__printf(2, 3) __cold
13991399 void _dev_alert(const struct device *dev, const char *fmt, ...);
1400−__printf(2, 3)
1400+__printf(2, 3) __cold
14011401 void _dev_crit(const struct device *dev, const char *fmt, ...);
1402−__printf(2, 3)
1402+__printf(2, 3) __cold
14031403 void _dev_err(const struct device *dev, const char *fmt, ...);
1404−__printf(2, 3)
1404+__printf(2, 3) __cold
14051405 void _dev_warn(const struct device *dev, const char *fmt, ...);
1406−__printf(2, 3)
1406+__printf(2, 3) __cold
14071407 void _dev_notice(const struct device *dev, const char *fmt, ...);
1408−__printf(2, 3)
1408+__printf(2, 3) __cold
14091409 void _dev_info(const struct device *dev, const char *fmt, ...);
14101410
14111411 #else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t