Commit f467362
firmware: arm_sdei: Introduce sdei_do_local_call()
During the CPU hotplug, the private events are registered, enabled
or unregistered on the specific CPU. It repeats the same steps:
initializing cross call argument, make function call on local CPU,
check the returned error.
This introduces sdei_do_local_call() to cover the first steps. The
other benefit is to make CROSSCALL_INIT and struct sdei_crosscall_args
are only visible to sdei_do_{cross, local}_call().
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200922130423.10173-12-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent a27c04e commit f467362
1 file changed
Lines changed: 25 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
| |||
677 | 688 | | |
678 | 689 | | |
679 | 690 | | |
680 | | - | |
| 691 | + | |
681 | 692 | | |
682 | 693 | | |
683 | 694 | | |
684 | 695 | | |
685 | 696 | | |
686 | 697 | | |
687 | 698 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
| 699 | + | |
| 700 | + | |
692 | 701 | | |
693 | | - | |
| 702 | + | |
| 703 | + | |
694 | 704 | | |
695 | 705 | | |
696 | 706 | | |
| |||
700 | 710 | | |
701 | 711 | | |
702 | 712 | | |
703 | | - | |
| 713 | + | |
704 | 714 | | |
705 | 715 | | |
706 | 716 | | |
| |||
709 | 719 | | |
710 | 720 | | |
711 | 721 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
| 722 | + | |
| 723 | + | |
716 | 724 | | |
717 | | - | |
| 725 | + | |
| 726 | + | |
718 | 727 | | |
719 | 728 | | |
720 | 729 | | |
721 | | - | |
722 | | - | |
723 | | - | |
| 730 | + | |
| 731 | + | |
724 | 732 | | |
725 | | - | |
| 733 | + | |
| 734 | + | |
726 | 735 | | |
727 | 736 | | |
728 | 737 | | |
| |||
0 commit comments