lkml.org 
[lkml]   [2018]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH V3 13/39] x86/intel_rdt: Introduce "bit_usage" to display cache allocations details
    On Wed, 25 Apr 2018, Reinette Chatre wrote:
    > + for (i = 0; i < r->num_closid; i++, ctrl++) {
    > + if (closid_allocated(i)) {

    You can spare an indentation level if you just do:

    if (!closid_allocated())
    continue;

    > + mode = rdtgroup_mode_by_closid(i);
    > + switch (mode) {
    > + case RDT_MODE_SHAREABLE:
    > + sw_shareable |= *ctrl;
    > + break;
    > + case RDT_MODE_EXCLUSIVE:
    > + exclusive |= *ctrl;
    > + break;
    > + case RDT_NUM_MODES:
    > + WARN(1,
    > + "invalid mode for closid %d\n", i);
    > + break;
    > + }

    Thanks,

    tglx

    \
     
     \ /
      Last update: 2018-05-19 17:22    [W:4.250 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site