From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757894Ab2AKRWc (ORCPT ); Wed, 11 Jan 2012 12:22:32 -0500 Received: from mail-gy0-f174.google.com ([209.85.160.174]:65330 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757290Ab2AKRWa (ORCPT ); Wed, 11 Jan 2012 12:22:30 -0500 MIME-Version: 1.0 Date: Wed, 11 Jan 2012 23:22:29 +0600 Message-ID: Subject: [Question] sched: Should nr_uninterruptible be decremented in ttwu_do_activate()? From: Rakib Mullick To: Peter Zijlstra , Ingo Molnar Cc: LKML Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello all, In ttwu_do_activate(), we're decrementing nr_uninterruptible if p->sched_contributes_to_load (for SMP=y). But, we're also decrementing nr_uninterruptible from activate_task at the same path. Why we're doing it twice for a single task activation path? Thanks, Rakib