Commit e114e2e
PM: hibernate: dynamically allocate crc->unc_len/unc for configurable threads
Convert crc->unc_len and crc->unc from fixed-size arrays to dynamically
allocated arrays, sized according to the actual number of threads selected
at runtime. This removes the fixed limit imposed by CMP_THREADS.
Signed-off-by: Xueqin Luo <luoxueqin@kylinos.cn>
Link: https://patch.msgid.link/b5db63bb95729482d2649b12d3a11cb7547b7fcc.1761046167.git.luoxueqin@kylinos.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent d3db87f commit e114e2e
1 file changed
Lines changed: 44 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
589 | | - | |
| 588 | + | |
| 589 | + | |
590 | 590 | | |
591 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
592 | 630 | | |
593 | 631 | | |
594 | 632 | | |
| |||
719 | 757 | | |
720 | 758 | | |
721 | 759 | | |
722 | | - | |
| 760 | + | |
723 | 761 | | |
724 | 762 | | |
725 | 763 | | |
| |||
885 | 923 | | |
886 | 924 | | |
887 | 925 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
| 926 | + | |
893 | 927 | | |
894 | 928 | | |
895 | 929 | | |
| |||
1239 | 1273 | | |
1240 | 1274 | | |
1241 | 1275 | | |
1242 | | - | |
| 1276 | + | |
1243 | 1277 | | |
1244 | 1278 | | |
1245 | 1279 | | |
| |||
1506 | 1540 | | |
1507 | 1541 | | |
1508 | 1542 | | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
| 1543 | + | |
1514 | 1544 | | |
1515 | 1545 | | |
1516 | 1546 | | |
| |||
0 commit comments