forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commita73f863
sched/features: Fix !CONFIG_JUMP_LABEL case
Commit:765cc3a ("sched/core: Optimize sched_feat() for !CONFIG_SCHED_DEBUG builds")made sched features static for !CONFIG_SCHED_DEBUG configurations, butoverlooked the CONFIG_SCHED_DEBUG=y and !CONFIG_JUMP_LABEL cases.For the latter echoing changes to /sys/kernel/debug/sched_features hasthe nasty effect of effectively changing what sched_features reports,but without actually changing the scheduler behaviour (since differenttranslation units get different sysctl_sched_features).Fix CONFIG_SCHED_DEBUG=y and !CONFIG_JUMP_LABEL configurations by properlyrestructuring ifdefs.Fixes:765cc3a ("sched/core: Optimize sched_feat() for !CONFIG_SCHED_DEBUG builds")Co-developed-by: Daniel Bristot de Oliveira <bristot@redhat.com>Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>Signed-off-by: Juri Lelli <juri.lelli@redhat.com>Signed-off-by: Ingo Molnar <mingo@kernel.org>Acked-by: Patrick Bellasi <patrick.bellasi@matbug.net>Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>Link:https://lore.kernel.org/r/20201013053114.160628-1-juri.lelli@redhat.com1 parenteba9f08 commita73f863
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1629 | 1629 | | |
1630 | 1630 | | |
1631 | 1631 | | |
1632 | | - | |
| 1632 | + | |
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
| 1640 | + | |
1640 | 1641 | | |
1641 | 1642 | | |
1642 | 1643 | | |
| |||
1649 | 1650 | | |
1650 | 1651 | | |
1651 | 1652 | | |
1652 | | - | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
1653 | 1660 | | |
1654 | 1661 | | |
1655 | 1662 | | |
| |||
1665 | 1672 | | |
1666 | 1673 | | |
1667 | 1674 | | |
1668 | | - | |
| 1675 | + | |
1669 | 1676 | | |
1670 | 1677 | | |
1671 | 1678 | | |
| |||
0 commit comments
Comments
(0)