@@ -487,40 +487,6 @@ static int dlpar_memory_remove_by_index(u32 drc_index)
487
487
return rc ;
488
488
}
489
489
490
- static int dlpar_memory_readd_by_index (u32 drc_index )
491
- {
492
- struct drmem_lmb * lmb ;
493
- int lmb_found ;
494
- int rc ;
495
-
496
- pr_info ("Attempting to update LMB, drc index %x\n" , drc_index );
497
-
498
- lmb_found = 0 ;
499
- for_each_drmem_lmb (lmb ) {
500
- if (lmb -> drc_index == drc_index ) {
501
- lmb_found = 1 ;
502
- rc = dlpar_remove_lmb (lmb );
503
- if (!rc ) {
504
- rc = dlpar_add_lmb (lmb );
505
- if (rc )
506
- dlpar_release_drc (lmb -> drc_index );
507
- }
508
- break ;
509
- }
510
- }
511
-
512
- if (!lmb_found )
513
- rc = - EINVAL ;
514
-
515
- if (rc )
516
- pr_info ("Failed to update memory at %llx\n" ,
517
- lmb -> base_addr );
518
- else
519
- pr_info ("Memory at %llx was updated\n" , lmb -> base_addr );
520
-
521
- return rc ;
522
- }
523
-
524
490
static int dlpar_memory_remove_by_ic (u32 lmbs_to_remove , u32 drc_index )
525
491
{
526
492
struct drmem_lmb * lmb , * start_lmb , * end_lmb ;
@@ -617,10 +583,6 @@ static int dlpar_memory_remove_by_index(u32 drc_index)
617
583
{
618
584
return - EOPNOTSUPP ;
619
585
}
620
- static int dlpar_memory_readd_by_index (u32 drc_index )
621
- {
622
- return - EOPNOTSUPP ;
623
- }
624
586
625
587
static int dlpar_memory_remove_by_ic (u32 lmbs_to_remove , u32 drc_index )
626
588
{
@@ -902,10 +864,6 @@ int dlpar_memory(struct pseries_hp_errorlog *hp_elog)
902
864
break ;
903
865
}
904
866
905
- break ;
906
- case PSERIES_HP_ELOG_ACTION_READD :
907
- drc_index = hp_elog -> _drc_u .drc_index ;
908
- rc = dlpar_memory_readd_by_index (drc_index );
909
867
break ;
910
868
default :
911
869
pr_err ("Invalid action (%d) specified\n" , hp_elog -> action );
0 commit comments