lkml.org 
[lkml]   [2019]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC][PATCH 2/8] perf/x86/intel: Simplify intel_tfa_commit_scheduling()
    validate_group() calls x86_schedule_events(.assign=NULL) and therefore
    will not call intel_tfa_commit_scheduling(). So there is no point in
    checking cpuc->is_fake, we'll never get there.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    ---
    arch/x86/events/intel/core.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/x86/events/intel/core.c
    +++ b/arch/x86/events/intel/core.c
    @@ -2015,7 +2015,7 @@ static void intel_tfa_commit_scheduling(
    /*
    * We're going to use PMC3, make sure TFA is set before we touch it.
    */
    - if (cntr == 3 && !cpuc->is_fake)
    + if (cntr == 3)
    intel_set_tfa(cpuc, true);
    }


    \
     
     \ /
      Last update: 2019-03-14 14:12    [W:4.272 / U:0.304 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site