lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 20 Feb 2013 17:05:21 +0800
From:	Sha Zhengju <handai.szj@...il.com>
To:	Xiaotian Feng <xtfeng@...il.com>
Cc:	linux-kernel@...r.kernel.org, mingo@...nel.org,
	Sha Zhengju <handai.szj@...bao.com>
Subject: Re: [PATCH] sched/core: remove obsolete nr_uninterruptible()

On Wed, Feb 20, 2013 at 4:31 PM, Xiaotian Feng <xtfeng@...il.com> wrote:
> On Wed, Feb 20, 2013 at 3:37 PM, Sha Zhengju <handai.szj@...il.com> wrote:
>> From: Sha Zhengju <handai.szj@...bao.com>
>>
>> Signed-off-by: Sha Zhengju <handai.szj@...bao.com>
>> ---
>>  kernel/sched/core.c |   17 -----------------
>>  1 file changed, 17 deletions(-)
>
> You missed include/linux/sched.h :)

Ohhhh... yeah, another lost... thank you for correcting me!  :)

>
>>
>> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
>> index c0b07c3..792f6fc 100644
>> --- a/kernel/sched/core.c
>> +++ b/kernel/sched/core.c
>> @@ -1957,23 +1957,6 @@ unsigned long nr_running(void)
>>         return sum;
>>  }
>>
>> -unsigned long nr_uninterruptible(void)
>> -{
>> -       unsigned long i, sum = 0;
>> -
>> -       for_each_possible_cpu(i)
>> -               sum += cpu_rq(i)->nr_uninterruptible;
>> -
>> -       /*
>> -        * Since we read the counters lockless, it might be slightly
>> -        * inaccurate. Do not allow it to go below zero though:
>> -        */
>> -       if (unlikely((long)sum < 0))
>> -               sum = 0;
>> -
>> -       return sum;
>> -}
>> -
>>  unsigned long long nr_context_switches(void)
>>  {
>>         int i;
>> --
>> 1.7.9.5
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@...r.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/



-- 
Thanks,
Sha
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ