Commit 7630ea1
x86/resctrl: make pseudo_lock_class a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the pseudo_lock_class structure to be declared at build
time placing it into read-only memory, instead of having to be
dynamically allocated at boot time.
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Reinette Chatre <reinette.chatre@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
Cc: "H. Peter Anvin" <hpa@zytor.com>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20230620144431.583290-6-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 5b87c05 commit 7630ea1
1 file changed
Lines changed: 21 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
49 | 63 | | |
50 | 64 | | |
51 | 65 | | |
| |||
1353 | 1367 | | |
1354 | 1368 | | |
1355 | 1369 | | |
1356 | | - | |
| 1370 | + | |
1357 | 1371 | | |
1358 | 1372 | | |
1359 | 1373 | | |
| |||
1383 | 1397 | | |
1384 | 1398 | | |
1385 | 1399 | | |
1386 | | - | |
| 1400 | + | |
1387 | 1401 | | |
1388 | 1402 | | |
1389 | 1403 | | |
| |||
1424 | 1438 | | |
1425 | 1439 | | |
1426 | 1440 | | |
1427 | | - | |
| 1441 | + | |
1428 | 1442 | | |
1429 | 1443 | | |
1430 | 1444 | | |
| |||
1560 | 1574 | | |
1561 | 1575 | | |
1562 | 1576 | | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | 1577 | | |
1574 | 1578 | | |
1575 | 1579 | | |
| |||
1580 | 1584 | | |
1581 | 1585 | | |
1582 | 1586 | | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
| 1587 | + | |
| 1588 | + | |
1586 | 1589 | | |
1587 | 1590 | | |
1588 | 1591 | | |
1589 | 1592 | | |
1590 | | - | |
1591 | 1593 | | |
1592 | 1594 | | |
1593 | 1595 | | |
1594 | 1596 | | |
1595 | 1597 | | |
1596 | | - | |
1597 | | - | |
| 1598 | + | |
1598 | 1599 | | |
1599 | 1600 | | |
1600 | 1601 | | |
0 commit comments