From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 12 Aug 2013 09:46:57 -0600 Subject: [U-Boot] [PATCH v8 RESEND 2/2] console: usb: kbd: To improve TFTP booting performance In-Reply-To: <201308112008.33488.marex@denx.de> References: <1376051599-7644-1-git-send-email-jilin@nvidia.com> <201308112008.33488.marex@denx.de> Message-ID: <52090371.6000209@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/11/2013 12:08 PM, Marek Vasut wrote: > Dear Jim Lin, > >> TFTP booting is slow when a USB keyboard is installed and >> stdin has usbkbd added. >> This fix is to change Ctrl-C polling for USB keyboard to every second >> when NET transfer is running. >> diff --git a/include/usb.h b/include/usb.h >> +extern int __maybe_unused net_busy_flag; > > I wonder what would happen if you declared it here as > > static int __maybe_unused > > Would it have some side-effects? Then each file that includes this header will get a separate copy of the variable.